Skip to content

Commit

Permalink
testing with the old action
Browse files Browse the repository at this point in the history
  • Loading branch information
rmanaem committed Mar 4, 2024
1 parent ba32266 commit 778c935
Showing 1 changed file with 10 additions and 20 deletions.
30 changes: 10 additions & 20 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# From https://vitejs.dev/guide/static-deploy#github-pages
name: deploy

on:
Expand All @@ -7,39 +6,30 @@ on:
- maint-41
workflow_dispatch:

# Sets the GITHUB_TOKEN permissions to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write

jobs:
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Node

- name: Set up node env
uses: actions/[email protected]
with:
node-version: 18
cache: 'npm'

- name: Create .env file
run: |
echo -e "NB_API_QUERY_URL=${{ vars.NB_API_QUERY_URL }}\nNB_IS_FEDERATION_API=${{ vars.NB_IS_FEDERATION_API }}" > .env
- name: Install dependencies
run: npm install

- name: Build
run: npm run build
- name: Setup Pages
uses: actions/configure-pages@v4
- name: Upload artifact
uses: actions/upload-pages-artifact@v3

- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
path: './dist'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./dist

0 comments on commit 778c935

Please sign in to comment.