Fix release.yml

sleep-stdin-bug 22.0.8
Anton Medvedev 2 years ago
parent a01be39389
commit b0045d03a9

@ -6,10 +6,12 @@ on:
- created - created
jobs: jobs:
release: commit:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
with:
ref: master
- name: Set up Go - name: Set up Go
uses: actions/setup-go@v3 uses: actions/setup-go@v3
@ -25,9 +27,8 @@ jobs:
set -x set -x
sed -i "s/version = .*/version = \"${RELEASE_VERSION}\"/" version.go sed -i "s/version = .*/version = \"${RELEASE_VERSION}\"/" version.go
sed -i "s/version: .*/version: ${RELEASE_VERSION}/" snap/snapcraft.yaml sed -i "s/version: .*/version: ${RELEASE_VERSION}/" snap/snapcraft.yaml
git checkout master
git add version.go snap/snapcraft.yaml git add version.go snap/snapcraft.yaml
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com" git config --global user.email "github-actions@github.com"
git config --global user.name "github-actions" git config --global user.name "github-actions"
git commit -m "Release RELEASE_VERSION" git commit -m "Release RELEASE_VERSION"
git tag -a "$RELEASE_VERSION" -m "Release $RELEASE_VERSION" --force git tag -a "$RELEASE_VERSION" -m "Release $RELEASE_VERSION" --force
@ -37,7 +38,7 @@ jobs:
run: go test -v ./... run: go test -v ./...
binary: binary:
needs: [release] needs: [commit]
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
@ -54,7 +55,7 @@ jobs:
run: npx zx .github/workflows/release.mjs run: npx zx .github/workflows/release.mjs
snap: snap:
needs: [release] needs: [commit]
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3

Loading…
Cancel
Save