Skip to content

Commit

Permalink
ci: undeploy to vercel
Browse files Browse the repository at this point in the history
  • Loading branch information
MR-Addict committed Sep 25, 2023
1 parent f9fb693 commit 97a96e0
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 21 deletions.
22 changes: 8 additions & 14 deletions .github/workflows/pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,27 +10,21 @@ on:
jobs:
pages:
runs-on: ubuntu-latest
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}

steps:
- name: checkout current branch
- name: checkout
uses: actions/checkout@v3
- name: setup mdbook

- name: setup
run: |
cp assets/mdbook /usr/local/bin
cp assets/mdbook-admonish /usr/local/bin
chmod u+x /usr/local/bin/mdbook*
- name: build book
- name: build
run: mdbook build
- name: deploy to vercel
uses: amondnet/vercel-action@v25
with:
vercel-args: --prod
vercel-token: ${{ secrets.VERCEL_TOKEN }}
vercel-org-id: ${{ secrets.VERCEL_ORG_ID}}
vercel-project-id: ${{ secrets.VERCEL_PROJECT_ID}}
working-directory: ./book
- name: push to gh-pages

- name: deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
Expand Down
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@ RUN chmod u+x /usr/local/bin/mdbook*
RUN mdbook build

FROM nginx:stable-alpine
EXPOSE 80
COPY --from=builder /app/book /usr/share/nginx/html
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,4 @@
你可以通过以下网址访问网页内容:

- [https://notes.mraddict.top](https://notes.mraddict.top)
- [https://notes.mraddict.vercel.app](https://notes.mraddict.vercel.app)
- [https://mr-addict.github.io/notes](https://mr-addict.github.io/notes)
6 changes: 0 additions & 6 deletions vercel.json

This file was deleted.

0 comments on commit 97a96e0

Please sign in to comment.