More renaming #8
Workflow file for this run
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: FTEQW Release | |
on: | |
push: | |
tags: | |
- '*' | |
workflow_dispatch: | |
jobs: | |
generate_release: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
repository: actionquake/fteqw | |
ref: ${{ github.ref }} | |
- name: version | |
run: echo "::set-output name=short_sha::$(git rev-parse --short HEAD)" | |
id: version | |
- name: release | |
uses: actions/create-release@v1 | |
id: create_release | |
with: | |
draft: false | |
prerelease: false | |
release_name: fteqw_${{ steps.version.outputs.short_sha }} | |
tag_name: ${{ steps.version.outputs.short_sha }} | |
env: | |
GITHUB_TOKEN: ${{ github.token }} | |
- name: Download web build artifacts | |
uses: dawidd6/action-download-artifact@v2 | |
with: | |
workflow: main.yml | |
name: fteqw-web-${{ steps.version.outputs.short_sha }} | |
skip_unpack: true | |
- name: Download Linux x64 build artifacts | |
uses: dawidd6/action-download-artifact@v2 | |
with: | |
workflow: main.yml | |
name: fteqw-linux64-${{ steps.version.outputs.short_sha }} | |
skip_unpack: true | |
- name: Download Win x64 build artifacts | |
uses: dawidd6/action-download-artifact@v2 | |
with: | |
workflow: main.yml | |
name: fteqw-win64-${{ steps.version.outputs.short_sha }} | |
skip_unpack: true | |
- name: Download Win x86 build artifacts | |
uses: dawidd6/action-download-artifact@v2 | |
with: | |
workflow: main.yml | |
name: fteqw-win32-${{ steps.version.outputs.short_sha }} | |
skip_unpack: true | |
- name: Download Darwin arm64 build artifacts | |
uses: dawidd6/action-download-artifact@v2 | |
with: | |
workflow: main.yml | |
name: fteqw-macos-arm64-${{ steps.version.outputs.short_sha }} | |
skip_unpack: true | |
- name: Rename files for release | |
run: | | |
mv fteqw-linux64-${{ steps.version.outputs.short_sha }}.zip fteqw-linux64.zip | |
mv fteqw-win64-${{ steps.version.outputs.short_sha }}.zip fteqw-win64.zip | |
mv fteqw-win32-${{ steps.version.outputs.short_sha }}.zip fteqw-win32.zip | |
mv fteqw-macos-arm64-${{ steps.version.outputs.short_sha }}.zip fteqw-macos-arm64.zip | |
mv fteqw-web-${{ steps.version.outputs.short_sha }}.zip fteqw-web.zip | |
- name: Upload dist tarball to release | |
uses: softprops/action-gh-release@v1 | |
env: | |
GITHUB_TOKEN: ${{ github.token }} | |
with: | |
body_path: | |
tag_name: ${{ steps.version.outputs.short_sha }} | |
files: | | |
fteqw-linux64.zip | |
fteqw-macos-arm64.zip | |
fteqw-web.zip | |
fteqw-win32.zip | |
fteqw-win64.zip | |