-
-
Notifications
You must be signed in to change notification settings - Fork 1
54 lines (49 loc) · 1.44 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
name: Release
on:
push:
branches: [master]
workflow_run:
workflows: ["Lint and Test"]
types:
- completed
workflow_dispatch:
env:
CI: true
jobs:
release:
permissions:
id-token: write
contents: write
runs-on: ubuntu-22.04
if: ${{ github.event.workflow_run.conclusion == 'success' && github.event.workflow_run.head_branch == 'master' }}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
fetch-tags: true
ref: master
token: ${{ secrets.GH_TOKEN }}
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
with:
platforms: linux/amd64,linux/arm64
use: true
install: true
cache-binary: true
cleanup: true
- name: Release
env:
GIT_USERNAME: ${{ vars.GIT_USERNAME }}
GIT_EMAIL: ${{ vars.GIT_EMAIL }}
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
GPG_KEY_ID: ${{ vars.GPG_KEY_ID }}
GPG_KEY: ${{ secrets.GPG_KEY }}
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
DOCKER_HUB_USERNAME: ${{ vars.DOCKER_HUB_USERNAME }}
DOCKER_HUB_PAT: ${{ secrets.DOCKER_HUB_PAT }}
shell: bash
run: |
bash ./release.sh --plugins=npm,npm-post,git,github-release,docker --pre-release