-
-
Notifications
You must be signed in to change notification settings - Fork 3
75 lines (65 loc) · 1.81 KB
/
deploy.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
73
74
75
name: "Packages"
on:
pull_request:
types:
- closed
defaults:
run:
shell: bash -l {0}
jobs:
Deployment:
if: github.event.pull_request.merged == true
name: "Deploy Packages"
runs-on: ubuntu-latest
steps:
- name: "Cancel similar actions in progress"
uses: styfle/[email protected]
with:
access_token: ${{ github.token }}
- name: "Setup Arturo"
uses: arturo-lang/arturo-action@main
- name: "Checkout"
uses: actions/checkout@main
with:
submodules: recursive
- name: Update package info
run: |
echo "${{ github.workspace }}/bin" >> $GITHUB_PATH
arturo tools/deploy.art
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Publish changes
uses: EndBug/add-and-commit@v9
with:
author_name: drkameleon
author_email: [email protected]
message: 'CI Package Deployment'
add: '*.art'
push: 'origin ${new_branch input} --force'
# jobs:
# build:
# name: "Deploy Packages"
# runs-on: ${{ matrix.os }}
# strategy:
# matrix:
# os:
# - ubuntu-latest
# version:
# - full
# steps:
# - name: "Cancel similar actions in progress"
# uses: styfle/[email protected]
# with:
# access_token: ${{ github.token }}
# - name: "Setup Arturo"
# uses: arturo-lang/arturo-action@main
# - name: "Checkout"
# uses: actions/checkout@main
# with:
# submodules: recursive
# - name: Run unit tests
# run: |
# echo "${{ github.workspace }}/bin" >> $GITHUB_PATH
# arturo tools/ci.art
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}