Skip to content

Commit

Permalink
release: site
Browse files Browse the repository at this point in the history
  • Loading branch information
cipchk committed Jul 2, 2024
1 parent 04c8f56 commit e3220f0
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 4 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/build-doc-site-aliyun-docker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: build-doc-site-aliyun-docker

# on: push
on:
push:
branches:
- master

jobs:
website:
if: "startsWith(github.event.head_commit.message, 'release')"
runs-on: ubuntu-latest
environment: prod
steps:
- uses: actions/checkout@v4

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2

- name: Login Docker
uses: docker/login-action@v2
with:
registry: registry.cn-hangzhou.aliyuncs.com
username: ${{ secrets.ALIYUN_USERNAME }}
password: ${{ secrets.ALIYUN_PASSWORD }}

- name: Build and push
uses: docker/build-push-action@v4
with:
context: .
file: ./Dockerfile.docs
push: true
tags: registry.cn-hangzhou.aliyuncs.com/alain/docs:latest
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: docker-build-doc-site
name: build-doc-site-docker

# on: push
on:
Expand All @@ -8,7 +8,7 @@ on:

jobs:
website:
if: "startsWith(github.event.commits[0].message, 'release')"
if: "startsWith(github.event.head_commit.message, 'release')"
runs-on: ubuntu-latest
environment: prod
steps:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/deploy-site.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on: push

jobs:
website:
if: "startsWith(github.event.commits[0].message, 'release')"
if: "startsWith(github.event.head_commit.message, 'release')"
runs-on: ubuntu-latest
environment: prod
steps:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/mirror-gitee.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on: push

jobs:
to_gitee:
if: "!startsWith(github.event.commits[0].message, 'release')"
if: "!startsWith(github.event.head_commit.message, 'release')"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand Down

0 comments on commit e3220f0

Please sign in to comment.