Skip to content

Commit 4ce559d

Browse files
committed
[Minor] CI changes
1 parent 7ca1666 commit 4ce559d

1 file changed

Lines changed: 10 additions & 36 deletions

File tree

.github/workflows/release.yml

Lines changed: 10 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,62 +1,36 @@
1-
# This is a basic workflow to help you get started with Actions
1+
name: Package and Release
22

3-
name: CI
4-
5-
# Controls when the action will run. Triggers the workflow on push or pull request
6-
# events but only for the master branch
73
on:
84
push:
95
branches: [ develop ]
10-
tags:
11-
- '**'
12-
- '!**classic**'
136

147
permissions:
158
contents: write
169

17-
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
1810
jobs:
19-
# This workflow contains a single job called "build"
2011
build:
21-
# The type of runner that the job will run on
2212
runs-on: ubuntu-latest
2313
env:
2414
GITHUB_OAUTH: ${{ secrets.GITHUB_TOKEN }}
2515

26-
# Steps represent a sequence of tasks that will be executed as part of the job
2716
steps:
28-
# we first have to clone the AddOn project, this is a required step
2917
- name: Clone project
3018
uses: actions/checkout@v6
3119
with:
32-
fetch-depth: 0 # gets git history for changelogs
20+
fetch-depth: 0
3321

3422
- name: Package for develop artifacts
3523
id: package_develop
36-
if: github.ref_type == 'branch'
3724
uses: BigWigsMods/packager@v2
3825
with:
3926
args: -d
4027

41-
- name: Package and publish tagged release
42-
id: package_release
43-
if: github.ref_type == 'tag'
44-
uses: BigWigsMods/packager@v2
45-
46-
- name: Upload develop artifact
47-
if: github.ref_type == 'branch'
48-
uses: actions/upload-artifact@v4
49-
with:
50-
name: packaged-zips-${{ github.run_number }}
51-
path: .release/*.zip
52-
if-no-files-found: error
53-
include-hidden-files: true
54-
55-
- name: Upload tagged release artifact
56-
if: github.ref_type == 'tag'
57-
uses: actions/upload-artifact@v4
28+
- name: Publish zip to GitHub Releases
29+
uses: softprops/action-gh-release@v2
5830
with:
59-
name: packaged-zips-${{ github.run_number }}
60-
path: .release/*.zip
61-
if-no-files-found: error
62-
include-hidden-files: true
31+
tag_name: develop-${{ github.sha }}
32+
name: Develop build ${{ github.sha }}
33+
target_commitish: ${{ github.sha }}
34+
prerelease: true
35+
files: .release/*.zip
36+
fail_on_unmatched_files: true

0 commit comments

Comments
 (0)