Skip to content

Commit

Permalink
Aktualisieren von build-nightly.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
flokuep authored Apr 24, 2024
1 parent 5b4c7e4 commit 2f6eb45
Showing 1 changed file with 7 additions and 12 deletions.
19 changes: 7 additions & 12 deletions .github/workflows/build-nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,31 +33,26 @@ jobs:
needs: prepare-build
uses: ./.github/workflows/dotnet-desktop.yml
with:
version: ${{ needs.prepare-build.outputs }}-g${{ github.sha }}
version: ${{ needs.prepare-build.outputs.version }}

publish:
runs-on: ubuntu-latest
needs: build-windows
name: Publish release
steps:
- name: Move tag
if: ${{ github.event_name == 'push'}}
uses: actions/github-script@v7
- name: Remove old nightly
uses: dev-drprasad/[email protected]
with:
result-encoding: string
script: |
github.rest.git.updateRef({
owner: context.repo.owner,
repo: context.repo.repo,
ref: "tags/Nightly",
sha: context.sha
})
tag_name: Nightly
delete_release: true

- name: Create Release
if: ${{ github.event_name == 'push'}}
uses: softprops/action-gh-release@v2
with:
name: Latest Nightly build
tag_name: Nightly
target_commitish: ${{ github.sha }}
prerelease: true
generate_release_notes: true

Expand Down

0 comments on commit 2f6eb45

Please sign in to comment.