Skip to content

Commit

Permalink
update workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
firexcy committed Mar 14, 2024
1 parent e103ab6 commit 3fe1c14
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@ name: Deploy
on:
push:
tags:
- '*'
- "*"

jobs:
build:
name: Deploy docs
runs-on: ubuntu-latest
env:
TAG_NAME: '0.0.0'
TAG_NAME: "0.0.0"
steps:
- name: Checkout main
uses: actions/checkout@v4
Expand All @@ -19,27 +19,27 @@ jobs:
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: '3.10'
cache: 'pip' # caching pip dependencies
python-version: "3.10"
cache: "pip" # caching pip dependencies

- name: Install dependencies
run: |
pip install -r requirements.txt
- name: Build Docs
run: |
mkdocs build
- name: Set current tag
run: |
echo ${GITHUB_REF#refs/tags/}
echo TAG_NAME=${GITHUB_REF#refs/tags/} >> $GITHUB_ENV
- name: 'Compress Zip'
- name: "Compress Zip"
run: |
zip -r "manpi_release_${{ env.TAG_NAME }}.zip" \
site/ \
- name: Download QShell
run: |
wget -O qshell.tar.gz https://github.com/qiniu/qshell/releases/download/v2.13.0/qshell-v2.13.0-linux-amd64.tar.gz
Expand All @@ -53,8 +53,8 @@ jobs:
run: |
${{ github.workspace }}/qshell account ${{ secrets.CI_CDN_ACCESS_KEY }} ${{ secrets.CI_CDN_SECRET_KEY }} manpi
${{ github.workspace }}/qshell qupload2 --src-dir=${{ github.workspace }}/site --bucket=${{ secrets.CI_CDN_BUCKET }} --overwrite=true
- name: 'Upload Release'
- name: "Upload Release"
uses: softprops/action-gh-release@v2
with:
token: ${{ secrets.GITHUB_TOKEN }}
Expand Down

0 comments on commit 3fe1c14

Please sign in to comment.