-
Notifications
You must be signed in to change notification settings - Fork 40
48 lines (36 loc) · 1.27 KB
/
CurseForge-Deployment.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
48
name: Main - CurseForge - Package and Release - All pushes
# Deploy on all pushes to master, except '.github/**' folder.
on:
push:
branches:
- master
tags:
- '*'
- '!**-alpha**'
paths-ignore:
- '.github/**'
jobs:
build-and-publish:
if: "!contains(github.event.head_commit.message, 'update changelog')"
runs-on: ubuntu-latest
env:
CF_API_KEY: ${{ secrets.CF_API_KEY }}
WAGO_API_TOKEN: ${{ secrets.WAGO_API_KEY }}
GITHUB_OAUTH: ${{ secrets.GITHUB_TOKEN }} # "GITHUB_TOKEN" is a secret always provided to the workflow
# for your own token, the name cannot start with "GITHUB_"
steps:
- name: Clone project
uses: actions/checkout@v4
with:
fetch-depth: 0 # for automated history and tags
- name: Hack around https://github.com/actions/checkout/issues/290
run: |
git fetch --tags --force
- uses: leafo/[email protected]
- name: Create Changelog
run: lua Plater_ChangeLog.lua latest >> CHANGELOG.md
- name: Package and Release
uses: BigWigsMods/packager@master
#continue-on-error: true
with:
args: -S -o -n "{project-version}:{project-version}"