mirror of
https://codeberg.org/gigirassy/pinata
synced 2026-08-30 23:37:40 +00:00
Update .github/workflows/docker-publish.yml
This commit is contained in:
@@ -16,7 +16,7 @@ jobs:
|
|||||||
outputs:
|
outputs:
|
||||||
tag: ${{ steps.set_tag.outputs.TAG }}
|
tag: ${{ steps.set_tag.outputs.TAG }}
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout (full)
|
- name: Checkout (full history required for tagging)
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
@@ -67,14 +67,15 @@ jobs:
|
|||||||
GOOS=${{ matrix.goos }} GOARCH=${{ matrix.goarch }} \
|
GOOS=${{ matrix.goos }} GOARCH=${{ matrix.goarch }} \
|
||||||
go build -o ${OUT}/pinata-${{ matrix.goos }}-${{ matrix.goarch }}${EXT} ./
|
go build -o ${OUT}/pinata-${{ matrix.goos }}-${{ matrix.goarch }}${EXT} ./
|
||||||
|
|
||||||
- name: Package (linux example)
|
- name: Package (example for linux)
|
||||||
if: matrix.goos == 'linux'
|
if: matrix.goos == 'linux'
|
||||||
run: |
|
run: |
|
||||||
tar -czf pinata-${{ matrix.goos }}-${{ matrix.goarch }}.tar.gz build-artifacts/pinata-${{ matrix.goos }}-${{ matrix.goarch }}
|
tar -czf pinata-${{ matrix.goos }}-${{ matrix.goarch }}.tar.gz build-artifacts/pinata-${{ matrix.goos }}-${{ matrix.goarch }}
|
||||||
|
|
||||||
- name: Upload artifacts to Release
|
- name: Upload artifacts to the Release
|
||||||
uses: softprops/action-gh-release@v1
|
uses: ncipollo/release-action@v1
|
||||||
with:
|
with:
|
||||||
|
tag: ${{ needs.prepare_release.outputs.tag }}
|
||||||
files: |
|
files: |
|
||||||
build-artifacts/*
|
build-artifacts/*
|
||||||
*.tar.gz
|
*.tar.gz
|
||||||
|
|||||||
Reference in New Issue
Block a user