Skip to content

Commit

Permalink
remove public-url from trunk build action
Browse files Browse the repository at this point in the history
  • Loading branch information
fitzy1321 committed Jul 25, 2024
1 parent 9b7825f commit e9f8a70
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions .github/workflows/gh-pages-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ concurrency:

jobs:
Github-Pages-Release:

timeout-minutes: 10

environment:
Expand All @@ -42,12 +41,10 @@ jobs:
- name: lint
run: cargo clippy & cargo fmt


# If using tailwind...
# - name: Download and install tailwindcss binary
# run: npm install -D tailwindcss && npx tailwindcss -i <INPUT/PATH.css> -o <OUTPUT/PATH.css> # run tailwind


- name: Download and install Trunk binary
run: wget -qO- https://github.com/trunk-rs/trunk/releases/download/v0.20.2/trunk-x86_64-unknown-linux-gnu.tar.gz | tar -xzf-

Expand All @@ -57,16 +54,14 @@ jobs:
# this is necessary for github pages where the site is deployed to username.github.io/repo_name and all files must be requested
# relatively as favicon.ico. if we skip public-url option, the href paths will instead request username.github.io/favicon.ico which
# will obviously return error 404 not found.
run: ./trunk build --release --public-url "${GITHUB_REPOSITORY#*/}"

run: ./trunk build --release # --public-url "${GITHUB_REPOSITORY#*/}"

# Deploy to gh-pages branch
# - name: Deploy 🚀
# uses: JamesIves/github-pages-deploy-action@v4
# with:
# folder: dist


# Deploy with Github Static Pages

- name: Setup Pages
Expand All @@ -79,7 +74,7 @@ jobs:
uses: actions/upload-pages-artifact@v3
with:
# Upload dist dir
path: './dist'
path: "./dist"

- name: Deploy to GitHub Pages 🚀
id: deployment
Expand Down

0 comments on commit e9f8a70

Please sign in to comment.