aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/deploy.yml
diff options
context:
space:
mode:
authorCaleb Maclennan <caleb@alerque.com>2023-11-10 09:12:04 +0300
committerCaleb Maclennan <caleb@alerque.com>2023-11-10 09:12:04 +0300
commit5c4fc93d5f4137bf4c22ddf1a048c907a4a26727 (patch)
treea9a68e1f6a9c3bfe2b64fa1c3a4098865b7d3b5d /.github/workflows/deploy.yml
parentccef3bc4e2aa6ee5b997a80aabb58f4ff0b0e98f (diff)
parent43a97b7f0053313b43906371dbdc226271e6c8ab (diff)
downloadluasocket-hjelmeland-patch-1.tar.gz
luasocket-hjelmeland-patch-1.tar.bz2
luasocket-hjelmeland-patch-1.zip
Merge branch 'master' into hjelmeland-patch-1hjelmeland-patch-1
Diffstat (limited to '.github/workflows/deploy.yml')
-rw-r--r--.github/workflows/deploy.yml34
1 files changed, 34 insertions, 0 deletions
diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml
new file mode 100644
index 0000000..acd66ea
--- /dev/null
+++ b/.github/workflows/deploy.yml
@@ -0,0 +1,34 @@
1name: Deploy
2
3on: [ push, workflow_dispatch ]
4
5jobs:
6
7 affected:
8 uses: lunarmodules/.github/.github/workflows/list_affected_rockspecs.yml@main
9
10 build:
11 needs: affected
12 if: ${{ needs.affected.outputs.rockspecs }}
13 uses: lunarmodules/.github/.github/workflows/test_build_rock.yml@main
14 with:
15 rockspecs: ${{ needs.affected.outputs.rockspecs }}
16
17 upload:
18 needs: [ affected, build ]
19 # Only run upload if:
20 # 1. We are on the canonical repository (no uploads from forks)
21 # 2. The current commit is either tagged or on the default branch (the workflow will upload dev/scm rockspecs any
22 # time they are touched, tagged ones whenever the edited rockspec and tag match)
23 # 3. Some rockspecs were changed — this implies the commit changing the rockspec is the same one that gets tagged
24 if: >-
25 ${{
26 github.repository == 'lunarmodules/luasocket' &&
27 ( github.ref_name == 'master' || startsWith(github.ref, 'refs/tags/') ) &&
28 needs.affected.outputs.rockspecs
29 }}
30 uses: lunarmodules/.github/.github/workflows/upload_to_luarocks.yml@main
31 with:
32 rockspecs: ${{ needs.affected.outputs.rockspecs }}
33 secrets:
34 apikey: ${{ secrets.LUAROCKS_APIKEY }}