-
Notifications
You must be signed in to change notification settings - Fork 2
70 lines (54 loc) · 1.33 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
name: Release
on: [push]
# env:
# GH_TOKEN: "${{ secrets.GH_TOKEN }}"
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 16
cache: "yarn"
- name: Install Deps
run: yarn install --immutable
- name: Build
run: yarn build
- name: Compile to binary
run: yarn compile
- uses: actions/upload-artifact@v4
with:
name: dist
path: dist
release:
name: Release Train
needs: [build]
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
statuses: write
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
token: ${{ github.token }}
- run: git pull && git fetch --tags
- uses: actions/download-artifact@v4
with:
name: dist
path: dist
- name: Login to DockerHub
uses: docker/login-action@v3
with:
username: mbround18
password: ${{ secrets.DOCKER_TOKEN }}
- run: docker compose build
- name: Create Release
env:
IMAGE: mbround18/foundryvtt-docker
uses: mbround18/auto@v1.5.0
with:
token: ${{ github.token }}