mirror of
https://codeberg.org/Codeberg/Documentation.git
synced 2026-08-15 14:53:29 -07:00
fix(ci): publish preview only when build done, save CI: don't build twice, remove not working expiration (#812)
Reviewed-on: https://codeberg.org/Codeberg/Documentation/pulls/812
This commit is contained in:
parent
3fabaf196c
commit
e9fee7f014
2 changed files with 3 additions and 3 deletions
|
|
@ -1,5 +1,4 @@
|
|||
when:
|
||||
- event: [pull_request]
|
||||
- event: push
|
||||
branch:
|
||||
- ${CI_REPO_DEFAULT_BRANCH}
|
||||
|
|
|
|||
|
|
@ -15,6 +15,7 @@ steps:
|
|||
with: pnpm
|
||||
frozen_lockfile: true
|
||||
ignore_node_modules: true
|
||||
depends_on: change-path
|
||||
|
||||
deploy-preview:
|
||||
image: codeberg.org/gedankenstuecke/git-pages-woodpecker-plugin:v2
|
||||
|
|
@ -24,7 +25,7 @@ steps:
|
|||
TOKEN:
|
||||
from_secret: surge_forge_token
|
||||
UPLOAD_DIR: _site
|
||||
EXPIRES: 30
|
||||
depends_on: build
|
||||
|
||||
comment:
|
||||
image: mcs94/gitea-comment
|
||||
|
|
@ -32,5 +33,5 @@ steps:
|
|||
gitea_address: https://codeberg.org
|
||||
gitea_token:
|
||||
from_secret: surge_forge_token
|
||||
comment: 'Preview ready: https://codeberg.codeberg.page/documentation/pull_${CI_COMMIT_PULL_REQUEST} (expires in 30 days)'
|
||||
comment: 'Preview ready: https://codeberg.codeberg.page/documentation/pull_${CI_COMMIT_PULL_REQUEST}'
|
||||
depends_on: deploy-preview
|
||||
|
|
|
|||
Loading…
Reference in a new issue