Merge pull request #17 from The-Nefarious-Developer/documentation #16
This file contains 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 Devcontainer Templates" | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- main | |
jobs: | |
deploy: | |
if: ${{ github.ref == 'refs/heads/main' }} | |
runs-on: ubuntu-latest | |
permissions: | |
packages: write | |
contents: write | |
pull-requests: write | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Publish template | |
uses: devcontainers/action@v1 | |
with: | |
publish-templates: "true" | |
base-path-to-templates: "./src" | |
env: | |
GITHUB_TOKEN: ${{ secrets.NEFARIOUS_TOKEN }} | |
release: | |
name: Generate release | |
if: github.ref == 'refs/heads/main' | |
runs-on: ubuntu-latest | |
needs: deploy | |
permissions: | |
contents: write | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup Node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 22 | |
cache: npm | |
- name: Install dependencies | |
run: npm ci | |
- name: Generate version and release | |
env: | |
GITHUB_TOKEN: ${{ secrets.NEFARIOUS_TOKEN }} | |
run: npm run semantic-release |