Skip to content
/ actions Public

This repo is collection some GitHub Actions

Notifications You must be signed in to change notification settings

yuler/actions

Repository files navigation

GitHub Actions

This repo is collection some GitHub Actions.

Recommend use gh download1 command.

Node.js

gh dl https://github.com/yuler/actions/blob/main/nodejs/ci.yml --outdir .github/workflows

Related:

gh dl https://github.com/yuler/actions/blob/main/nodejs/npm-publish.yml --outdir .github/workflows
# Add NPM_TOKEN secret from `~/.npmrc`
gh alias set add-npm-token "secret set NPM_TOKEN --body "$(cat ~/.npmrc | grep _authToken | sed 's/\/\/registry.npmjs.org\/:_authToken=//')""
gh add-npm-token

Related:

Miniprogram

gh dl https://github.com/yuler/actions/blob/main/miniprogram/miniprogram-upload.yml --outdir .github/workflows
gh secret set MINIPROGRAM_APP_ID <$appId>
gh secret set MINIPROGRAM_PRIVATE_KEY < apps/mini/private.<$appId>.key

Misc

gh dl https://github.com/yuler/actions/blob/main/misc/sync-gitlab.yml --outdir .github/workflows
gh secret set GITLAB_TOKEN <$YOUR_GITLAB_TOKEN>
gh dl https://github.com/yuler/actions/blob/main/misc/cron.yml --outdir .github/workflows
gh secret set GITLAB_TOKEN <$YOUR_GITLAB_TOKEN>

Related:

Recommend use release-drafter action.

gh dl https://github.com/yuler/actions/blob/main/misc/drafter.yml --outdir .github/workflows
gh dl https://github.com/yuler/actions/blob/main/misc/release-drafter.yml --outdir .github

Note Must first have the configuration file in the default branch

Related:

Related

Rails

gh dl https://github.com/yuler/actions/blob/main/rails/ci.yml --outdir .github/workflows

Footnotes

  1. The gh download command is come from gh-download

About

This repo is collection some GitHub Actions

Resources

Code of conduct

Stars

Watchers

Forks

Packages

No packages published