Skip to content

Commit

Permalink
Add new workflows to deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
bahiirwa committed Oct 13, 2022
1 parent ae4f0c0 commit 5c195af
Show file tree
Hide file tree
Showing 2 changed files with 54 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Release
on:
push:
branches:
- releases
release:
types:
- published
workflow_dispatch:

jobs:
release:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 14
registry-url: https://registry.npmjs.org/

- name: Install the dependencies
run: npm i

- name: Install vsce
run: npm i -g vsce

- name: Publish
run: vsce publish -p ${{ secrets.VSCE_PAT }}
25 changes: 25 additions & 0 deletions .github/workflows/welcome.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Welcome New Contributors

on:
branches:
- main
pull_request_target:
types: [ opened ]

jobs:
# Comments on a pull request when the author is a new contributor.
post-welcome-message:
runs-on: ubuntu-latest
steps:
- uses: bubkoo/welcome-action@8dbbac2540d155744c90e4e37da6b05ffc9c5e2c # v1.0.3
with:
GITHUB_TOKEN: ${{ secrets.ACTION_TOKEN }}
FIRST_PR_COMMENT:
Hi @{{ author }}! 👋
Thank you for your contribution to ClassicPress Snippets! 💖
It looks like this is your first pull request. We appreciate and value your contribution!

Please read our [contribution guide](CONTRIBUTING.md) to find out how you can be more involved.

Thank you,
Laurence, ClassicPress Snippets Team.

0 comments on commit 5c195af

Please sign in to comment.