-
Notifications
You must be signed in to change notification settings - Fork 3
57 lines (47 loc) · 1.45 KB
/
all.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
on: [push, pull_request]
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: checkout code
uses: actions/checkout@v2
- name: build
run: .github/build
- name: upload artifacts
uses: actions/upload-artifact@v2
with:
name: dist
path: |
dist/*.tar.gz
dist/*.md
release:
name: Release
runs-on: ubuntu-latest
needs: build
if: startsWith(github.ref, 'refs/tags/v')
steps:
- name: checkout code
uses: actions/checkout@v2
- name: download artifacts
uses: actions/download-artifact@v2
with:
name: dist
path: dist
- name: decrypt signing keys
env:
OPENSSL_KEY: ${{ secrets.OPENSSL_KEY }}
OPENSSL_IV: ${{ secrets.OPENSSL_IV }}
run: openssl aes-256-cbc -K $OPENSSL_KEY -iv $OPENSSL_IV -in .github/keys.tar.xz.enc -out .github/keys.tar.xz -d
- name: extract signing keys
run: tar xf .github/keys.tar.xz -C .github
- name: import public key
run: gpg --import .github/keys/public.key
- name: import private key
run: gpg --allow-secret-key-import --import .github/keys/private.key
- name: create and upload release
run: .github/release
env:
TRAVIS_REPO_SLUG: just-containers/socklog-overlay
TRAVIS_TAG: ${{ github.ref }}
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}