v2.7.1 Merge pull request #741 from Die4Ever/develop #45
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: release-installer | |
on: | |
release: | |
types: | |
- published | |
- prereleased | |
push: | |
branches: ["master"] | |
jobs: | |
windows: | |
runs-on: windows-latest | |
env: | |
RELEASE_TAG: testing | |
steps: | |
- name: Check out repository code | |
uses: actions/checkout@v4 | |
# install stuff and run tests | |
- uses: ./.github/run-tests | |
# set the tag to the current ref, otherwise stick with the testing tag | |
- if: ${{ ! startsWith(github.ref, 'refs/heads/') }} | |
run: echo "RELEASE_TAG=${{ github.ref }}" >> $GITHUB_ENV | |
shell: bash | |
# upload assets to release | |
- name: Upload Release Asset DXRando | |
id: upload-release-asset-dxrando | |
uses: svenstaro/upload-release-action@v2 | |
with: | |
repo_token: ${{ secrets.GITHUB_TOKEN }} | |
file: installer/dist/DXRandoInstaller.exe | |
asset_name: DXRandoInstaller.exe | |
tag: ${{ env.RELEASE_TAG }} | |
overwrite: true | |
- name: Upload Release Asset Vanilla Fixer | |
id: upload-release-asset-vanillafixer | |
uses: svenstaro/upload-release-action@v2 | |
with: | |
repo_token: ${{ secrets.GITHUB_TOKEN }} | |
file: installer/dist/DXRandoInstaller.exe | |
asset_name: DXRVanillaFixer.exe | |
tag: ${{ env.RELEASE_TAG }} | |
overwrite: true | |
- name: Upload Release Asset Zero Rando | |
id: upload-release-asset-zerorando | |
uses: svenstaro/upload-release-action@v2 | |
with: | |
repo_token: ${{ secrets.GITHUB_TOKEN }} | |
file: installer/dist/DXRandoInstaller.exe | |
asset_name: DXRZeroRando.exe | |
tag: ${{ env.RELEASE_TAG }} | |
overwrite: true | |
- name: Upload Release Asset BingoViewer | |
id: upload-release-asset-bingoviewer | |
uses: svenstaro/upload-release-action@v2 | |
with: | |
repo_token: ${{ secrets.GITHUB_TOKEN }} | |
file: installer/dist/BingoViewer.exe | |
asset_name: BingoViewer.exe | |
tag: ${{ env.RELEASE_TAG }} | |
overwrite: true | |
linux: | |
runs-on: ubuntu-latest | |
env: | |
RELEASE_TAG: testing | |
defaults: | |
run: | |
shell: bash | |
steps: | |
- name: Check out repository code | |
uses: actions/checkout@v4 | |
# install stuff and run tests | |
- run: sudo apt-get update -y | |
- run: sudo apt-get install -y python3-tk idle3 binutils | |
- uses: ./.github/run-tests | |
# set the tag to the current ref, otherwise stick with the testing tag | |
- if: ${{ ! startsWith(github.ref, 'refs/heads/') }} | |
run: echo "RELEASE_TAG=${{ github.ref }}" >> $GITHUB_ENV | |
shell: bash | |
# update our testing tag | |
- if: ${{ startsWith(github.ref, 'refs/heads/') }} | |
name: Update tag | |
uses: actions/github-script@v7 | |
with: | |
script: | | |
github.rest.git.updateRef({ | |
owner: context.repo.owner, | |
repo: context.repo.repo, | |
ref: 'tags/testing', | |
sha: context.sha | |
}) | |
# upload assets to release | |
- name: Upload Release Asset DXRando | |
id: upload-release-asset-dxrando | |
uses: svenstaro/upload-release-action@v2 | |
with: | |
repo_token: ${{ secrets.GITHUB_TOKEN }} | |
file: installer/dist/DXRandoInstaller | |
asset_name: DXRandoInstaller-Linux | |
tag: ${{ env.RELEASE_TAG }} | |
overwrite: true | |
- name: Upload Release Asset Vanilla Fixer | |
id: upload-release-asset-vanillafixer | |
uses: svenstaro/upload-release-action@v2 | |
with: | |
repo_token: ${{ secrets.GITHUB_TOKEN }} | |
file: installer/dist/DXRandoInstaller | |
asset_name: DXRVanillaFixer-Linux | |
tag: ${{ env.RELEASE_TAG }} | |
overwrite: true | |
- name: Upload Release Asset Zero Rando | |
id: upload-release-asset-zerorando | |
uses: svenstaro/upload-release-action@v2 | |
with: | |
repo_token: ${{ secrets.GITHUB_TOKEN }} | |
file: installer/dist/DXRandoInstaller | |
asset_name: DXRZeroRando-Linux | |
tag: ${{ env.RELEASE_TAG }} | |
overwrite: true | |
- name: Upload Release Asset BingoViewer | |
id: upload-release-asset-bingoviewer | |
uses: svenstaro/upload-release-action@v2 | |
with: | |
repo_token: ${{ secrets.GITHUB_TOKEN }} | |
file: installer/dist/BingoViewer | |
asset_name: BingoViewer-Linux | |
tag: ${{ env.RELEASE_TAG }} | |
overwrite: true |