Skip to content

Commit

Permalink
create nightly tag from main head
Browse files Browse the repository at this point in the history
  • Loading branch information
raphamorim committed Dec 16, 2023
1 parent b881d33 commit d34da3a
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,40 @@ env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

jobs:
create_tag:
outputs:
created: ${{ steps.status.outputs.created }}
runs-on: ubuntu-latest
permissions:
contents: write
discussions: write

steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Delete old nightly release
uses: dev-drprasad/[email protected]
with:
tag_name: ${{ env.NIGHTLY_TAG }}
github_token: ${{ secrets.GITHUB_TOKEN }}
delete_release: true

- name: Bump version and push tag
id: tag_version
uses: mathieudutour/[email protected]
with:
custom_tag: ${{ env.NIGHTLY_TAG }}
tag_prefix: ''
github_token: ${{ secrets.GITHUB_TOKEN }}

- id: status
run: echo "created=true" >> "$GITHUB_OUTPUT"

nightly-release-macos:
needs: create_tag
if: ${{ needs.create_tag.outputs.created == 'true' }}
runs-on: macos-11.0
permissions:
contents: write
Expand Down Expand Up @@ -87,6 +120,8 @@ jobs:
# release/debian/wayland/*

nightly-release-windows:
needs: create_tag
if: ${{ needs.create_tag.outputs.created == 'true' }}
runs-on: windows-latest
defaults:
run:
Expand Down

0 comments on commit d34da3a

Please sign in to comment.