Skip to content

Commit

Permalink
github workflow update
Browse files Browse the repository at this point in the history
  • Loading branch information
Ashu999 committed Nov 27, 2024
1 parent fe5f37e commit 8dafe82
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 11 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/pages.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
name: Github Pages

# By default, runs if you push to main. keeps your deployed app in sync with main branch.
on:
push:
branches:
- main
# to only run when you do a new github release, comment out above part and uncomment the below trigger.
# on:
# release:
# types:
# - published
# push:
# branches:
# - main
# to only run when you do a new github release, comment out above part and uncomment the below trigger.
on:
release:
types:
- published

permissions:
contents: write # for committing to gh-pages branch.
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -163,11 +163,12 @@ jobs:

- uses: svenstaro/upload-release-action@v2
name: Upload binaries to release
if: ${{ github.event_name == 'push' }}
if: startsWith(github.ref, 'refs/tags/')
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: web_value_tracker-${{ matrix.TARGET }}${{ matrix.EXTENSION }}
asset_name: web_value_tracker-${{ matrix.TARGET }}${{ matrix.EXTENSION }}
tag: ${{ github.ref }}
prerelease: ${{ !startsWith(github.ref, 'refs/tags/') }}
tag: ${{ github.ref_name }}
prerelease: false
overwrite: true
make_latest: true

0 comments on commit 8dafe82

Please sign in to comment.