diff --git a/.forgejo/workflows/build-crx.yaml b/.forgejo/workflows/build-crx.yaml new file mode 100644 index 0000000..c44df1e --- /dev/null +++ b/.forgejo/workflows/build-crx.yaml @@ -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 diff --git a/.woodpecker.yml b/.woodpecker.yml deleted file mode 100644 index 04ba7ed..0000000 --- a/.woodpecker.yml +++ /dev/null @@ -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