Skip to content

Commit

Permalink
ci
Browse files Browse the repository at this point in the history
  • Loading branch information
htshos committed Mar 11, 2024
1 parent 7c74a1e commit 87d5a40
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 19 deletions.
17 changes: 5 additions & 12 deletions .github/workflows/astro.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,6 @@ concurrency:
group: "pages"
cancel-in-progress: false

env:
BUILD_PATH: "." # default value when not using subfolders
# BUILD_PATH: subfolder

jobs:
build:
Expand All @@ -40,23 +37,19 @@ jobs:
- name: html to pdf
uses: fifsky/html-to-pdf-action@master
with:
htmlFile: ${{ env.BUILD_PATH }}/dist/index.html
outputFile: ./conf2024.pdf
htmlFile: ./dist/index.html
outputFile: ./vscode-conf2024.pdf
pdfOptions: '{"format": "A4", "margin": {"top": "10mm", "left": "10mm", "right": "10mm", "bottom": "10mm"}}'
- name: Upload HTML
uses: actions/upload-artifact@v4
with:
name: HTML
path: ${{ env.BUILD_PATH }}/dist
- name: Upload PDF
uses: actions/upload-artifact@v4
with:
name: PDF
path: ./conf2024.pdf
path: ./dist

# - name: Upload artifact
# uses: actions/upload-pages-artifact@v3
# with:
# path: ${{ env.BUILD_PATH }}/dist
# path: ./dist

# deploy:
# environment:
Expand Down
3 changes: 2 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{
"svg.preview.background": "editor"
"svg.preview.background": "editor",
"liveServer.settings.root": "/dist"
}
6 changes: 0 additions & 6 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 87d5a40

Please sign in to comment.