This commit is contained in:
parent
58a106df9e
commit
ca4a6728bf
16
.forgejo/workflows/build-crx.yaml
Normal file
16
.forgejo/workflows/build-crx.yaml
Normal file
|
@ -0,0 +1,16 @@
|
|||
on: [push]
|
||||
jobs:
|
||||
build:
|
||||
runs-on: docker
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- run: cd ..
|
||||
ls
|
||||
apt-get update
|
||||
apt-get install -y chromium
|
||||
echo ${{ secrets.CERT }} > cf-detect-chrome.pem
|
||||
chromium --no-sandbox --pack-extension=./cf-detect-chrome --pack-extension-key=./cf-detect-chrome.pem
|
||||
- uses: actions/upload-artifact@v4
|
||||
with:
|
||||
path: ./cf-detect-chrome.crx
|
||||
overwrite: true
|
|
@ -1,20 +0,0 @@
|
|||
steps:
|
||||
|
||||
pack:
|
||||
image: alpine:3.19
|
||||
commands:
|
||||
- apk upgrade --no-cache --available && apk add --no-cache chromium
|
||||
- cd ..
|
||||
- echo $CERT > cf-detect-chrome.pem
|
||||
- chromium --no-sandbox --pack-extension=./cf-detect-chrome --pack-extension-key=./cf-detect-chrome.pem
|
||||
secrets: [ CERT ]
|
||||
|
||||
publish:
|
||||
image: woodpeckerci/plugin-gitea-release
|
||||
settings:
|
||||
base_url: https://git.massivebox.net
|
||||
files:
|
||||
- "cf-detect-chrome.crx"
|
||||
api_key:
|
||||
from_secret: GITEA_ACCESS_TOKEN
|
||||
target: main
|
Loading…
Reference in a new issue