Change ci system from woodpecker to actions
All checks were successful
/ build-artifacts (push) Successful in 1m20s
All checks were successful
/ build-artifacts (push) Successful in 1m20s
This commit is contained in:
parent
159963faa7
commit
6f6c8981f9
3 changed files with 29 additions and 47 deletions
29
.forgejo/workflows/release.yaml
Normal file
29
.forgejo/workflows/release.yaml
Normal file
|
@ -0,0 +1,29 @@
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
tags:
|
||||||
|
- v**
|
||||||
|
jobs:
|
||||||
|
build-artifacts:
|
||||||
|
runs-on: docker
|
||||||
|
steps:
|
||||||
|
- uses: https://code.forgejo.org/actions/checkout@v3
|
||||||
|
- id: build
|
||||||
|
run: |
|
||||||
|
echo "@fortawesome:registry=https://npm.fontawesome.com/" > .npmrc
|
||||||
|
echo "//npm.fontawesome.com/:_authToken=${{ secrets.FONTAWESOME_TOKEN }}" >> .npmrc
|
||||||
|
mkdir /tmp/release-dir
|
||||||
|
|
||||||
|
npm install
|
||||||
|
npm run production
|
||||||
|
|
||||||
|
git add -f dist/
|
||||||
|
git stash
|
||||||
|
|
||||||
|
git config --global --add safe.directory ${{ github.workspace }}
|
||||||
|
git archive --format=zip 'stash@{0}' -o /tmp/release-dir/reitanlage-oranienburg-${{ github.ref_name }}.zip --prefix=reitanlage-oranienburg/
|
||||||
|
shell: bash
|
||||||
|
- uses: https://code.forgejo.org/actions/forgejo-release@v1
|
||||||
|
with:
|
||||||
|
direction: upload
|
||||||
|
release-dir: /tmp/release-dir
|
||||||
|
token: ${{ github.token }}
|
|
@ -1,42 +0,0 @@
|
||||||
workspace:
|
|
||||||
base: /src/
|
|
||||||
path: reitanlage-oranienburg/
|
|
||||||
|
|
||||||
pipeline:
|
|
||||||
build_npm:
|
|
||||||
image: node:16.0.0
|
|
||||||
secrets: [ fontawesome_token ]
|
|
||||||
commands:
|
|
||||||
- echo "@fortawesome:registry=https://npm.fontawesome.com/" > .npmrc
|
|
||||||
- echo "//npm.fontawesome.com/:_authToken=$${FONTAWESOME_TOKEN}" >> .npmrc
|
|
||||||
- npm install
|
|
||||||
- npm run production
|
|
||||||
when:
|
|
||||||
event:
|
|
||||||
- tag
|
|
||||||
|
|
||||||
prepare_zip:
|
|
||||||
image: bitnami/git
|
|
||||||
commands:
|
|
||||||
- git add -f dist/
|
|
||||||
- git stash
|
|
||||||
- git config --global --add safe.directory /src/reitanlage-oranienburg
|
|
||||||
- git archive --format=zip 'stash@{0}' -o /src/reitanlage-oranienburg-${CI_COMMIT_TAG}.zip --prefix=reitanlage-oranienburg/
|
|
||||||
when:
|
|
||||||
event:
|
|
||||||
- tag
|
|
||||||
|
|
||||||
release:
|
|
||||||
image: plugins/gitea-release
|
|
||||||
settings:
|
|
||||||
api_key:
|
|
||||||
from_secret: gitea_token
|
|
||||||
base_url: https://git.serguzim.me
|
|
||||||
files:
|
|
||||||
- /src/reitanlage-oranienburg-${CI_COMMIT_TAG}.zip
|
|
||||||
title: ${CI_COMMIT_TAG}
|
|
||||||
when:
|
|
||||||
event:
|
|
||||||
- tag
|
|
||||||
|
|
||||||
branches: main
|
|
|
@ -1,5 +0,0 @@
|
||||||
# v0.1.0
|
|
||||||
## 12/21/2019
|
|
||||||
|
|
||||||
1. [](#new)
|
|
||||||
* ChangeLog started...
|
|
Loading…
Reference in a new issue