-
Notifications
You must be signed in to change notification settings - Fork 1
/
push-check-release.yml
46 lines (46 loc) · 1.54 KB
/
push-check-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
on: push
name: Check & Release
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: lint
uses: Roang-zero1/factorio-mod-luacheck@master
with:
LUACHECKRC_URL: https://raw.githubusercontent.com/Nexela/Factorio-luacheckrc/0.17/.luacheckrc
release-github:
runs-on: ubuntu-latest
needs: [lint]
if: startsWith(github.ref, 'refs/tags/')
steps:
- name: Create Factorio mod package
uses: Roang-zero1/factorio-mod-package@master
- name: Create GitHub release
uses: Roang-zero1/github-create-release-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
UPDATE_EXISTING: "true"
VERSION_REGEX: ^[[:digit:]]+\.[[:digit:]]+\.[[:digit:]]+
- name: Tag Filter
uses: actions/bin/filter@3c0b4f0e63ea54ea5df2914b4fabf383368cd0da
with:
args: tag
- name: Upload GitHub artifacts
uses: Roang-zero1/github-upload-release-artifacts-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
args: dist/
release-modportal:
runs-on: ubuntu-latest
needs: [lint]
if: startsWith(github.ref, 'refs/tags/')
steps:
- name: Create Factorio mod package
uses: Roang-zero1/factorio-mod-package@master
- name: Factorio release
uses: Roang-zero1/factorio-create-release-action@master
with:
factorio_password: ${{ secrets.FACTORIO_PASSWORD }}
factorio_user: ${{ secrets.FACTORIO_USER }}