forked from mitmproxy/mitmproxy
-
Notifications
You must be signed in to change notification settings - Fork 6
36 lines (33 loc) · 1008 Bytes
/
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
name: Release
on:
workflow_dispatch:
inputs:
version:
description: 'Version (major.minor.patch)'
required: true
type: string
skip-branch-status-check:
description: 'Skip CI status check.'
default: false
required: false
type: boolean
permissions:
actions: write
contents: write
jobs:
release:
environment: deploy-release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
token: ${{ secrets.GH_PUSH_TOKEN }} # this token works to push to the protected main branch.
- uses: actions/setup-node@v3
with:
node-version-file: .github/node-version.txt
- uses: actions/setup-python@v4
with:
python-version-file: .github/python-version.txt
- run: ./release/release.py ${{ inputs.version }} ${{ inputs.skip-branch-status-check }}
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} # this token works with the GraphQL API