Last active
May 3, 2022 19:00
-
-
Save amazingandyyy/53be55d85e6606f7de68977cfbf66429 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Release | |
on: | |
push: | |
branches: [main] | |
workflow_dispatch: | |
jobs: | |
lint: | |
name: Lint | |
runs-on: [self-hosted, general-ubuntu] | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- uses: open-turo/action-git-auth@v1 | |
with: | |
token: ${{ secrets.TURO_GITHUB_TOKEN }} | |
- uses: open-turo/action-pre-commit@v1 | |
- name: lint | |
run: ./script/lint | |
lint_2: | |
name: Lint | |
runs-on: [self-hosted, general-ubuntu] | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- uses: open-turo/action-git-auth@v1 | |
with: | |
token: ${{ secrets.TURO_GITHUB_TOKEN }} | |
- uses: open-turo/action-pre-commit@v1 | |
- name: lint | |
run: ./script/lint | |
test: | |
name: Test | |
runs-on: [self-hosted, general-ubuntu] | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: open-turo/action-git-auth@v1 | |
with: | |
token: ${{ secrets.TURO_GITHUB_TOKEN }} | |
- name: test | |
run: ./script/test | |
release: | |
name: Release | |
runs-on: [self-hosted, general-ubuntu] | |
needs: [lint, test] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- name: Setup Node.js | |
uses: actions/setup-node@v1 | |
with: | |
node-version: 14 | |
- name: Release | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: ./script/release | |
release_2: | |
name: Release | |
runs-on: [self-hosted, general-ubuntu] | |
needs: [lint, test] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- name: Setup Node.js | |
uses: actions/setup-node@v1 | |
with: | |
node-version: 14 | |
- name: Release | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: ./script/release | |
post-release: | |
name: Post Release | |
runs-on: [self-hosted, general-ubuntu] | |
needs: [release] | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: open-turo/action-git-auth@v1 | |
with: | |
token: ${{ secrets.TURO_GITHUB_TOKEN }} | |
- name: test | |
run: ./script/test |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment