mirror of
https://github.com/quatalog/quatalog.git
synced 2025-11-29 15:55:55 +00:00
Update github pages action to not serve LICENSE and README.md files
This commit is contained in:
parent
dc2d60a4c8
commit
7c28bf2d8f
49
.github/workflows/scraper.yml
vendored
49
.github/workflows/scraper.yml
vendored
|
|
@ -121,19 +121,10 @@ jobs:
|
||||||
git commit -m "$(date)" || exit 0
|
git commit -m "$(date)" || exit 0
|
||||||
git push
|
git push
|
||||||
|
|
||||||
deploy-static-site:
|
prepare-site:
|
||||||
name: Deploy static site to Github Pages
|
name: Prepare static site for Github Pages
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: [generate-site]
|
needs: [generate-site]
|
||||||
permissions:
|
|
||||||
pages: write
|
|
||||||
id-token: write
|
|
||||||
concurrency:
|
|
||||||
group: "pages"
|
|
||||||
cancel-in-progress: true
|
|
||||||
environment:
|
|
||||||
name: github-pages
|
|
||||||
url: ${{ steps.deployment.outputs.page_url }}
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout static-generated branch
|
- name: Checkout static-generated branch
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
|
@ -144,14 +135,38 @@ jobs:
|
||||||
- name: Setup Pages
|
- name: Setup Pages
|
||||||
uses: actions/configure-pages@v3
|
uses: actions/configure-pages@v3
|
||||||
|
|
||||||
- name: Upload artifact
|
- name: Archive github-pages artifact
|
||||||
uses: actions/upload-pages-artifact@v3
|
run: |
|
||||||
with:
|
tar \
|
||||||
path: |
|
--dereference --hard-dereference \
|
||||||
|
--directory . \
|
||||||
|
-cvf "$RUNNER_TEMP/artifact.tar"
|
||||||
|
--exclude=.git \
|
||||||
|
--exclude=.github \
|
||||||
|
--exclude=LICENSE \
|
||||||
|
--exclude=README.md \
|
||||||
.
|
.
|
||||||
!LICENSE
|
|
||||||
!README.md
|
|
||||||
|
|
||||||
|
- name: Upload github-pages artifact
|
||||||
|
uses: actions/upload-artifact@v3
|
||||||
|
with:
|
||||||
|
name: github-pages
|
||||||
|
path: ${{ runner.temp }}/artifact.tar
|
||||||
|
|
||||||
|
deploy-site:
|
||||||
|
name: Deploy static site to GitHub Pages
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
needs: [prepare-site]
|
||||||
|
permissions:
|
||||||
|
pages: write
|
||||||
|
id-token: write
|
||||||
|
concurrency:
|
||||||
|
group: "pages"
|
||||||
|
cancel-in-progress: true
|
||||||
|
environment:
|
||||||
|
name: github-pages
|
||||||
|
url: ${{ steps.deployment.outputs.page_url }}
|
||||||
|
steps:
|
||||||
- name: Deploy to GitHub Pages
|
- name: Deploy to GitHub Pages
|
||||||
id: deployment
|
id: deployment
|
||||||
uses: actions/deploy-pages@v1
|
uses: actions/deploy-pages@v1
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue