Skip to content

Commit

Permalink
trigger frontend release, cleanup workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelKreil committed Aug 8, 2023
1 parent ef502d9 commit a4b5fe8
Showing 1 changed file with 11 additions and 12 deletions.
23 changes: 11 additions & 12 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,22 +14,21 @@ jobs:
steps:
- uses: actions/checkout@v3

- run: 'echo "RELEASE_TAG=v$(jq -r ''.version'' package.json)" >> $GITHUB_ENV'
name: get version
- name: get version
run: 'echo "RELEASE_TAG=v$(jq -r ''.version'' package.json)" >> $GITHUB_ENV'

- run: npm install

- run: npm run build
name: build

- run: npm run release
name: prepare release

- run: gh release create $RELEASE_TAG || true
name: create release if needed
- name: create release if needed
run: gh release view $RELEASE_TAG || gh release create $RELEASE_TAG

- name: upload files to release
run: gh release upload $RELEASE_TAG --clobber dist/*.tar.gz

- run: gh release upload $RELEASE_TAG --clobber dist/*.tar.gz
name: add file to release
- name: update release
run: gh release edit $RELEASE_TAG --draft=false --latest --prerelease=false

- run: gh release edit $RELEASE_TAG --draft=false --latest --prerelease=false
name: update release
- name: trigger frontend release
run: 'curl -XPOST -u "michaelkreil:${{secrets.PAT_TOKEN}}" -H "Accept: application/vnd.github.everest-preview+json" -H "Content-Type: application/json" https://api.github.com/repos/versatiles-org/versatiles-frontend/actions/workflows/release.yml/dispatches --data ''{"ref":"main"}'''

0 comments on commit a4b5fe8

Please sign in to comment.