Skip to content

Instantly share code, notes, and snippets.

@wenqiglantz
Created January 23, 2022 15:47
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save wenqiglantz/13a72ad8e410f3cce02ec48f7fcef406 to your computer and use it in GitHub Desktop.
Save wenqiglantz/13a72ad8e410f3cce02ec48f7fcef406 to your computer and use it in GitHub Desktop.
---
name: "tagged-release"
on:
push:
tags:
- "v*"
jobs:
gh_tagged_release:
runs-on: "ubuntu-latest"
env:
JEST_VERBOSE: ${{ secrets.JEST_VERBOSE }}
steps:
- name: "Checkout source code"
uses: "actions/checkout@v2.3.4"
with:
lfs: true
fetch-depth: 0
- id: "yarn-cache"
run: echo "::set-output name=dir::$(yarn cache dir)"
- uses: "actions/cache@v2.1.6"
with:
path: ${{ steps.yarn-cache.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
- run: "yarn install --frozen-lockfile"
- run: "yarn lint"
- run: "yarn build"
- run: "yarn jest --env=node --colors --forceExit"
- uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
prerelease: false
files: |
packages/automatic-releases/dist/index.js
packages/keybase-notifications/dist/index.js
id: "automatic_releases"
# marvinpinto/action-keybase-notifications
# marvinpinto/action-automatic-releases
- name: "Automatically mirror release artifacts"
env:
GITHUB_SUPER_TOKEN: ${{ secrets.GITHUB_SUPER_TOKEN }}
run: |
./scripts/mirror-actions.sh "$AUTOMATIC_RELEASES_TAG"
- uses: "marvinpinto/action-keybase-notifications@latest"
if: always()
with:
job_status: ${{ job.status }}
opensentinel_token: ${{ secrets.OSL_TOKEN }}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment