Merge pull request #1356 from Sphereserver/dev #53
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: Create/upload auxiliary files to the release. | |
on: | |
push: | |
branches: | |
- 'master' | |
- 'main' | |
- 'dev' | |
jobs: | |
upload_github_release: | |
# Upload artifact linked to GitHub RELEASE we are creating - only if the run is for a pull request, or for selected branches | |
#if: contains(fromJson('["master", "main"]'), github.ref_name) | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Generate changelog | |
run: git log --pretty=format:"%ad %an %s" --date=short > Git-Changelog.txt | |
- name: Add auxiliary files to the release | |
uses: softprops/action-gh-release@v2 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
name: Nightly | |
tag_name: Nightly | |
prerelease: true | |
files: Git-Changelog.txt |