Skip to content

Commit

Permalink
Update release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
canc3s authored Aug 2, 2023
1 parent 318e312 commit 9ae4b35
Showing 1 changed file with 3 additions and 22 deletions.
25 changes: 3 additions & 22 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Release OXID
on:
push:
branches:
- 'release/**'
- 'release**'
- 'main'
release:
types: [ published ]
Expand Down Expand Up @@ -44,29 +44,10 @@ jobs:
submodules: recursive
- uses: actions/setup-go@v3
with:
go-version: 1.14
cache: true
go-version: 1.18
cache: go
- run: go build -trimpath -ldflags "-w -s -extldflags '-static'" -o target/${{ matrix.output }}
- uses: actions/upload-artifact@v3
with:
name: target
path: target/*

upload-release:
name: Release
needs: [ build-cli ]
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v3
- uses: actions/download-artifact@v3
with:
name: target
path: target
- run: ls -al target && ls -R target/ && file target/
# release assets
- uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: target/*

0 comments on commit 9ae4b35

Please sign in to comment.