Skip to content

Commit

Permalink
update deploy workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
shihtiy-tw committed Dec 30, 2023
1 parent f73374c commit 091d9be
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions .github/workflows/pages-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ name: "Build and Deploy"
on:
push:
branches:
- main
- master
paths-ignore:
- .gitignore
Expand All @@ -25,13 +26,9 @@ jobs:
build:
runs-on: ubuntu-latest

env:
MEDIUM_USER_ID: ${{secrets.MEDIUM_USER_ID}}
MEDIUM_INTEGRATION_TOKEN: ${{secrets.MEDIUM_INTEGRATION_TOKEN}}

steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0
# submodules: true
Expand All @@ -40,12 +37,12 @@ jobs:

- name: Setup Pages
id: pages
uses: actions/configure-pages@v1
uses: actions/configure-pages@v3

- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 3.2.2 # reads from a '.ruby-version' or '.tools-version' file if 'ruby-version' is omitted
ruby-version: 3.2
bundler-cache: true

- name: Build site
Expand All @@ -55,7 +52,9 @@ jobs:

- name: Test site
run: |
bundle exec htmlproofer _site --disable-external --check-html --allow_hash_href
bundle exec htmlproofer _site \
\-\-disable-external=true \
\-\-ignore-urls "/^http:\/\/127.0.0.1/,/^http:\/\/0.0.0.0/,/^http:\/\/localhost/"
- name: Upload site artifact
uses: actions/upload-pages-artifact@v1
Expand All @@ -71,4 +70,4 @@ jobs:
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v1
uses: actions/deploy-pages@v2

0 comments on commit 091d9be

Please sign in to comment.