Merge pull request #181 from araguaci/main #114
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 to GitHub Pages | |
on: | |
workflow_dispatch: | |
push: | |
branches: [ main ] | |
paths: ['web/**', 'guides/**', 'resources.yml', 'git-in-here.yml'] | |
permissions: | |
contents: read | |
pages: write | |
id-token: write | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
env: | |
SITE_URL: 'https://lissy93.github.io' | |
BASE_PATH: '/git-into-open-source' | |
GH_ACCESS_TOKEN: ${{ secrets.GH_WEB_PROD }} | |
steps: | |
- name: Checkout your repository 🛎️ | |
uses: actions/checkout@v3 | |
- name: Install, build, and upload site 🛠️ | |
uses: withastro/action@v0 | |
with: | |
path: ./web | |
node-version: 16 | |
package-manager: npm | |
deploy: | |
needs: build | |
runs-on: ubuntu-latest | |
environment: | |
name: github-pages | |
url: ${{ steps.deployment.outputs.page_url }} | |
steps: | |
- name: Deploy to GitHub Pages 🚢 | |
id: deployment | |
uses: actions/deploy-pages@v1 |