-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (45 loc) · 1.43 KB
/
release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
on:
push:
tags:
- 'v[0-9]+.[0-9]+.[0-9]+'
name: Create Release
jobs:
release:
name: Build release artifacts and create a release
runs-on: ubuntu-24.04
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Create zip archive
run: |
git archive --format=zip --prefix=neon-lords/ -o neon-lords.zip ${{ github.ref }}
- name: Create release draft
uses: actions/create-release@1
id: create_release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
draft: true
prerelease: false
tag_name: ${{ github.ref }}
release_name: ${{ github.ref }}
- name: Upload system.json
uses: actions/upload-release-asset@v1
id: upload-release-asset
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./system.json
asset_name: system.json
asset_content_type: application/json
- name: Upload neon-lords.zip
uses: actions/upload-release-asset@v1
id: upload-release-asset
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./neon-lords.zip
asset_name: neon-lords.zip
asset_content_type: application/zip