feat(release): releasing 1.0.0-beta2-ga07.. patch #53
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: Deploy VayuVani version | |
on: | |
# Runs on pushes targeting the default branch | |
push: | |
branches: ["main"] | |
paths: | |
- 'versions/**' # Trigger when files in versions/ change | |
- 'generate-manifest.js' # Trigger when the manifest generation script changes | |
- 'index.html' # Include if index.html changes | |
- '.github/workflows/**' # Include if workflow files change | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages | |
permissions: | |
contents: write | |
pages: write | |
id-token: write | |
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued. | |
concurrency: | |
group: "pages" | |
cancel-in-progress: false | |
jobs: | |
deploy: | |
environment: | |
name: github-pages | |
url: ${{ steps.deployment.outputs.page_url }} | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '18' | |
- name: Install Dependencies | |
run: npm install | |
- name: Generate Manifest | |
run: node generate-manifest.js | |
- name: Commit and Push Changes | |
env: | |
GIT_AUTHOR_NAME: GitHub Actions | |
GIT_AUTHOR_EMAIL: actions@github.com | |
GIT_COMMITTER_NAME: GitHub Actions | |
GIT_COMMITTER_EMAIL: actions@github.com | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: | | |
git config user.name "$GIT_AUTHOR_NAME" | |
git config user.email "$GIT_AUTHOR_EMAIL" | |
git add manifest*.json | |
git add versions.json | |
git diff --quiet && git diff --staged --quiet || (git commit -m "Update manifest.json" && git push) | |
- name: Setup Pages | |
uses: actions/configure-pages@v5 | |
- name: Upload artifact | |
uses: actions/upload-pages-artifact@v3 | |
with: | |
path: '.' | |
- name: Deploy to GitHub Pages | |
id: deployment | |
uses: actions/deploy-pages@v4 |