-
-
Notifications
You must be signed in to change notification settings - Fork 2
72 lines (65 loc) · 2.21 KB
/
patch-update.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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
name: patch-update
# when to run the workflow
on:
workflow_dispatch:
# instructions the workflow will perform
jobs:
build:
if: github.actor == 'sindre0830'
# environment to run on
runs-on: ubuntu-latest
permissions:
contents: write
# steps to perform
steps:
- uses: actions/checkout@v3
with:
fetch-depth: '0'
ref: ${{ github.sha }}
- name: Bump version and push tag
id: tag
uses: anothrNick/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
WITH_V: true
DEFAULT_BUMP: "patch"
- name: Create zipped folder
uses: thedoctor0/[email protected]
with:
type: 'zip'
filename: 'RimNauts2.zip'
exclusions: '*.zip* *.git* /*Workshop/* /*Source/* /*.github/* .gitignore Changelog.md LICENSE README.md'
- name: Create release and attach the zipped folder
uses: ncipollo/release-action@v1
with:
artifacts: 'RimNauts2.zip'
bodyFile: "Changelog.md"
tag: ${{ steps.tag.outputs.new_tag }}
- name: Unzip folder to a temporary location
run: |
sudo apt-get install unzip
mkdir RimNauts2/
unzip RimNauts2.zip -d RimNauts2
- name: Push folder to steam
uses: AnarkisGaming/workshop@v1
env:
STEAM_ACCOUNT_NAME: ${{ secrets.accountname }}
STEAM_PASSWORD: ${{ secrets.password }}
with:
appID: 294100
publishedFileID: 2880599514
path: "RimNauts2/"
changelog: "New bug fix is out! Check out the changelog [url=https://github.com/RimNauts/RimNauts2/releases]here[/url]"
- name: Send message to Discord server
uses: Ilshidur/[email protected]
env:
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
TAG: ${{ steps.tag.outputs.new_tag }}
ROLE_ID: ${{ secrets.DISCORD_ROLE }}
with:
args: "**{{ TAG }}** New bug fix is out! Check out the changelog here <https://github.com/RimNauts/RimNauts2/releases/tag/{{ TAG }}> <@&{{ ROLE_ID }}>"
- name: Send Changelog file to Discord server
uses: tsickert/[email protected]
with:
webhook-url: ${{ secrets.DISCORD_WEBHOOK }}
filename: Changelog.md