Skip to content

Commit

Permalink
ci: migrate to woodpecker (#690)
Browse files Browse the repository at this point in the history
  • Loading branch information
xoxys authored Aug 25, 2023
1 parent 4978c38 commit 7c288f9
Show file tree
Hide file tree
Showing 10 changed files with 228 additions and 258 deletions.
252 changes: 0 additions & 252 deletions .drone.yml

This file was deleted.

6 changes: 4 additions & 2 deletions .github/settings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,9 @@ branches:
required_status_checks:
strict: false
contexts:
- continuous-integration/drone/pr
enforce_admins: true
- ci/woodpecker/pr/test
- ci/woodpecker/pr/build-package
- ci/woodpecker/pr/docs
enforce_admins: false
required_linear_history: true
restrictions: null
1 change: 0 additions & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
.drone.yml
_normalize.css
list.json.json
/.lighthouseci/
Expand Down
2 changes: 1 addition & 1 deletion .tarignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
.tarignore
.dictionary*
.git*
.drone*
.woodpecker*
.lighthouse*
.markdownlint*
.jsbeautify*
Expand Down
63 changes: 63 additions & 0 deletions .woodpecker/build-package.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
---
when:
- event: [pull_request, tag]
- event: [push, manual]
branch:
- ${CI_REPO_DEFAULT_BRANCH}

steps:
assets:
image: docker.io/library/node:lts
commands:
- git fetch -tq
- npm install > /dev/null
- npm run build
- cat VERSION
environment:
FORCE_COLOR: "true"
NPM_CONFIG_LOGLEVEL: error

package:
image: docker.io/library/node:lts
commands:
- npm run pack
environment:
FORCE_COLOR: "true"
NPM_CONFIG_LOGLEVEL: error

checksum:
image: quay.io/thegeeklab/alpine-tools
commands:
- cd dist/ && sha256sum * > ../sha256sum.txt

changelog-generate:
image: quay.io/thegeeklab/git-chglog
commands:
- git fetch -tq
- git-chglog --no-color --no-emoji -o CHANGELOG.md ${CI_COMMIT_TAG:---next-tag unreleased unreleased}

changelog-format:
image: quay.io/thegeeklab/alpine-tools
commands:
- prettier CHANGELOG.md
- prettier -w CHANGELOG.md

changelog:
image: thegeeklab/git-chglog

publish-github:
image: docker.io/plugins/github-release
settings:
api_key:
from_secret: github_token
files:
- dist/*
- sha256sum.txt
note: CHANGELOG.md
overwrite: true
title: ${CI_COMMIT_TAG}
when:
- event: [tag]

depends_on:
- test
Loading

0 comments on commit 7c288f9

Please sign in to comment.