Skip to content

Commit

Permalink
ci: 👷 change host
Browse files Browse the repository at this point in the history
  • Loading branch information
M1n-74316D65 committed May 14, 2024
1 parent a5d82c4 commit fc9f7dc
Showing 1 changed file with 22 additions and 18 deletions.
40 changes: 22 additions & 18 deletions .github/workflows/markdown-to-pages-action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ name: Pages
on:
workflow_dispatch:
push:
tags:
- v[0-9]+.*
# tags:
# - v[0-9]+.*
jobs:
build:
runs-on: ubuntu-latest
Expand All @@ -15,21 +15,25 @@ jobs:
with:
token: ${{ secrets.GITHUB_TOKEN }}
# - run: cp ./images ./dist/images/
- name: Setup Pages
uses: actions/configure-pages@v4
- uses: actions/upload-pages-artifact@v3
- name: publish to pgs
uses: picosh/pgs-action@v3
with:
path: dist
user: erock
key: ${{ secrets.PRIVATE_KEY }}
# trailing slash is important (we use rsync)
src: "./dist/"
# update or create a new project on-the-fly
project: "pastol"

deploy:
needs: build
runs-on: ubuntu-latest
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- uses: actions/deploy-pages@v4
id: deployment
# deploy:
# needs: build
# runs-on: ubuntu-latest
# permissions:
# pages: write
# id-token: write
# environment:
# name: github-pages
# url: ${{ steps.deployment.outputs.page_url }}
# steps:
# - uses: actions/deploy-pages@v4
# id: deployment

0 comments on commit fc9f7dc

Please sign in to comment.