Merge pull request #359 from OpenWebGAL/dev #40
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: Release WebGAL Terre | ||
on: | ||
workflow_dispatch: | ||
push: | ||
tags: | ||
- '*.*' | ||
jobs: | ||
release: | ||
name: Release | ||
runs-on: ubuntu-latest | ||
needs: ['build-linux','build-arm64','build-mac','build-windows','build-windows-nsis'] | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: Download artifacts | ||
uses: actions/download-artifact@v4 | ||
- name: Create Release | ||
id: create_release | ||
uses: actions/create-release@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
tag_name: ${{ github.ref }} | ||
release_name: WebGAL Terre ${{ github.ref }} | ||
body_path: releasenote.md | ||
draft: true | ||
prerelease: false | ||
- name: Upload Linux Asset | ||
uses: actions/upload-release-asset@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
upload_url: ${{ steps.create_release.outputs.upload_url }} | ||
asset_path: WebGAL_Terre_Linux/WebGAL_Terre_Linux.zip | ||
asset_name: WebGAL_Terre_Linux_${{ github.ref_name }}.zip | ||
asset_content_type: application/zip | ||
- name: Upload Linux Arm64 Asset | ||
uses: actions/upload-release-asset@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
upload_url: ${{ steps.create_release.outputs.upload_url }} | ||
asset_path: WebGAL_Terre_Linux_Arm64/WebGAL_Terre_Linux_Arm64.zip | ||
asset_name: WebGAL_Terre_Linux_Arm64_${{ github.ref_name }}.zip | ||
asset_content_type: application/zip | ||
- name: Upload MacOS Asset | ||
uses: actions/upload-release-asset@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
upload_url: ${{ steps.create_release.outputs.upload_url }} | ||
asset_path: WebGAL_Terre_Mac/WebGAL_Terre_Mac.zip | ||
asset_name: WebGAL_Terre_Mac_${{ github.ref_name }}.zip | ||
asset_content_type: application/zip | ||
- name: Upload Windows Asset | ||
uses: actions/upload-release-asset@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
upload_url: ${{ steps.create_release.outputs.upload_url }} | ||
asset_path: WebGAL_Terre_Windows/WebGAL_Terre_Windows.zip | ||
asset_name: WebGAL_Terre_Windows_${{ github.ref_name }}.zip | ||
asset_content_type: application/zip | ||
- name: Upload Windows Setup Asset | ||
uses: actions/upload-release-asset@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
upload_url: ${{ steps.create_release.outputs.upload_url }} | ||
asset_path: WebGAL_Terre_Windows_Setup/WebGal_Terre_Setup.exe | ||
asset_name: WebGAL_Terre_Windows_Setup_${{ github.ref_name }}.exe | ||
asset_content_type: application/vnd.microsoft.portable-executable |