forked from CleverRaven/Cataclysm-DDA
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0134a21
commit bd730ac
Showing
2 changed files
with
8 additions
and
15 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
name: "Experimental Release" | ||
on: | ||
push: | ||
branches: | ||
- master | ||
tags: | ||
- experimental-* | ||
jobs: | ||
release: | ||
name: Create Release | ||
|
@@ -11,21 +11,14 @@ jobs: | |
upload_url: ${{ steps.create_release.outputs.upload_url }} | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Push tag | ||
id: tag_version | ||
uses: mathieudutour/[email protected] | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
custom_tag: ${{ github.run_number }} | ||
tag_prefix: experimental- | ||
- name: Create release | ||
id: create_release | ||
uses: actions/create-release@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
tag_name: ${{ steps.tag_version.outputs.new_tag }} | ||
release_name: "Experimental Build #${{ github.run_number }}" | ||
tag_name: ${{ github.ref }} | ||
release_name: "Experimental Build #${{ github.ref }}" | ||
body: | | ||
These are the outputs for the experimental build of commit [${{ github.sha }}](https://github.com/${{ github.repository }}/commit/${{ github.sha }}) | ||
draft: false | ||
|
@@ -67,14 +60,14 @@ jobs: | |
EOL | ||
make -j$((`nproc`+0)) CROSS="${PLATFORM}" TILES=1 SOUND=1 RELEASE=1 LOCALIZE=1 BACKTRACE=0 PCH=0 bindist | ||
mv cataclysmdda-0.E.zip cdda-${{ matrix.artifact }}-b${{ github.run_number }}.zip | ||
mv cataclysmdda-0.E.zip cdda-${{ matrix.artifact }}-${{ github.ref }}.zip | ||
- name: Upload release asset | ||
id: upload-release-asset | ||
uses: actions/upload-release-asset@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
upload_url: ${{ needs.release.outputs.upload_url }} | ||
asset_path: cdda-${{ matrix.artifact }}-b${{ github.run_number }}.zip | ||
asset_name: cdda-${{ matrix.artifact }}-b${{ github.run_number }}.zip | ||
asset_path: cdda-${{ matrix.artifact }}-${{ github.ref }}.zip | ||
asset_name: cdda-${{ matrix.artifact }}-${{ github.ref }}.zip | ||
asset_content_type: application/zip |