Skip to content

Commit 0d10a6d

Browse files
committed
Release workflow
1 parent ed71f52 commit 0d10a6d

File tree

1 file changed

+55
-0
lines changed

1 file changed

+55
-0
lines changed

.github/workflows/release.yml

+55
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
name: Manual Release
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
version:
7+
description: 'Version number for the release'
8+
required: true
9+
default: '1.0.0'
10+
11+
jobs:
12+
build-and-release:
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- name: Checkout code
17+
uses: actions/checkout@v3
18+
19+
- name: Run workflow to build
20+
uses: convictional/[email protected]
21+
with:
22+
owner: ${{ github.repository_owner }}
23+
repo: ${{ github.event.repository.name }}
24+
github_token: ${{ secrets.GITHUB_TOKEN }}
25+
workflow_file_name: build-love-file.yml
26+
wait_interval: 10
27+
trigger_workflow: true
28+
wait_workflow: true
29+
30+
- name: Download artifact
31+
uses: actions/download-artifact@v3
32+
with:
33+
name: Game Build
34+
path: ./release-artifacts
35+
36+
- name: Create Release
37+
id: create_release
38+
uses: actions/create-release@v1
39+
env:
40+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
41+
with:
42+
tag_name: v${{ github.event.inputs.version }}
43+
release_name: Release ${{ github.event.inputs.version }}
44+
draft: false
45+
prerelease: false
46+
47+
- name: Upload Release Asset
48+
uses: actions/upload-release-asset@v1
49+
env:
50+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
51+
with:
52+
upload_url: ${{ steps.create_release.outputs.upload_url }}
53+
asset_path: ./release-artifacts/Game Build.zip
54+
asset_name: GameBuild-${{ github.event.inputs.version }}.zip
55+
asset_content_type: application/zip

0 commit comments

Comments
 (0)