Merge pull request #781 from playframework/mergify/bp/main/pr-779 #173
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Publish | |
on: | |
push: | |
branches: # Snapshots | |
- main | |
jobs: | |
publish-sources: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Package sources | |
run: | | |
./sources.sh | |
- name: Delete Release | |
run: gh release delete nightly --cleanup-tag || true | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Publish nightly sources | |
uses: softprops/action-gh-release@v2 | |
with: | |
prerelease: true | |
name: nightly | |
tag_name: nightly | |
target_commitish: ${{ github.ref_name }} | |
files: | | |
*-example.zip | |
fail_on_unmatched_files: true |