Skip to content

Commit

Permalink
Add update nightly step.
Browse files Browse the repository at this point in the history
Signed-off-by: Neloreck <Neloreck@gmail.com>
  • Loading branch information
Neloreck committed Mar 3, 2024
1 parent cefcc37 commit eb0353b
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/build_and_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,3 +63,38 @@ jobs:
name: xrf-application
path: target/release/xrf-application.exe
retention-days: 1


upload-nightly:
if: ${{ github.ref_name == 'main' && github.event_name != 'pull_request' }}
needs: [build]
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Update nightly tag
uses: EndBug/latest-tag@latest
id: update-nightly-tag
with:
ref: nightly

- uses: actions/download-artifact@v3
with:
name: xrf-cli

- name: Publish nightly cli build
if: ${{ steps.update-nightly-tag.outcome == 'success' }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: gh release upload --clobber nightly xrf-cli.exe

- uses: actions/download-artifact@v3
with:
name: xrf-application

- name: Publish nightly application build
if: ${{ steps.update-nightly-tag.outcome == 'success' }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: gh release upload --clobber nightly xrf-application.exe

0 comments on commit eb0353b

Please sign in to comment.