π fix: resolve CORS policy error by hosting image on same domain #66
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build and Deploy Jekyll to Github Pages | |
on: | |
push: | |
branches: [ master ] | |
jobs: | |
jekyll: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/[email protected] | |
# Use GitHub Actions' cache to shorten build times and decrease load on servers | |
- uses: actions/[email protected] | |
with: | |
path: vendor/bundle | |
key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }} | |
restore-keys: | | |
${{ runner.os }}-gems- | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 18.12.1 | |
cache: 'npm' | |
- name: Build Jekyll π | |
uses: helaili/jekyll-action@v2 | |
with: | |
#token: ${{ secrets.GH_PAGES_TOKEN }} | |
#target_branch: 'gh-pages' | |
jekyll_src: './' | |
jekyll_build_options: '--destination ./_site' | |
build_only: true | |
- name: Install node dependencies | |
run: npm install | |
- name: Optimize AMP β‘ and Minify HTML π | |
run: | | |
sudo chmod -R 777 ./_site | |
npx gulp build | |
- name: Deploy to gh-page π | |
uses: JamesIves/[email protected] | |
with: | |
branch: gh-pages | |
folder: '_site' |