Skip to content

Commit

Permalink
attempts plan b for pages
Browse files Browse the repository at this point in the history
  • Loading branch information
jomurgel committed Aug 3, 2023
1 parent fd40c6a commit 2961707
Showing 1 changed file with 10 additions and 18 deletions.
28 changes: 10 additions & 18 deletions .github/workflows/plant-acorn.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,15 @@ name: Deploy Acorn.css to GithubPages
on:
# Runs on pushes targeting the default branch
push:
branches: ['main']
branches:
- main

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

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

Expand All @@ -23,9 +24,6 @@ concurrency:
jobs:
# Single deploy job since we're just deploying
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand All @@ -37,21 +35,15 @@ jobs:
node-version: 18
cache: 'npm'

- name: Install dependencies
run: npm install

- name: Build
run: npm run build
- name: Install and Build
run: |
npm install
npm run build
- name: Setup Pages
uses: actions/configure-pages@v3

- name: Upload artifact
uses: actions/upload-pages-artifact@v1
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@v4
with:
# Upload dist repository
path: './dist'

- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v1
folder: ./dist

0 comments on commit 2961707

Please sign in to comment.