diff --git a/.ego-confirmation.json b/.ego-confirmation.json new file mode 100644 index 0000000..03c2fcb --- /dev/null +++ b/.ego-confirmation.json @@ -0,0 +1,4 @@ +{ + "shell_license_compliant": "By uploading this extension I agree and verify that in any controversial case regarding the compatibility of extension's license with the GNOME Shell's license, the extension uploaded by me may be used by any GNOME Shell user under the terms of the license used by GNOME Shell", + "tos_compliant": "I agree that a staff of extensions.gnome.org website may remove, modify or reassign maintainership of the extension uploaded by me" +} diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 90e6e48..e8a20d8 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -50,3 +50,29 @@ jobs: files: "dist/*" env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + + upload-ego: + runs-on: ubuntu-latest + needs: build + # Only upload releases from tags which denote a version, i.e. start with v + if: ${{ startsWith(github.ref, 'refs/tags/v') }} + steps: + - uses: actions/checkout@v4 + - uses: denoland/setup-deno@v1 + with: + deno-version: vx.x.x + - uses: actions/download-artifact@v3 + with: + path: dist + name: dist + - run: >- + deno run + --allow-read + --allow-env=EGO_USERNAME,EGO_PASSWORD + --allow-net=extensions.gnome.org + https://raw.githubusercontent.com/swsnr/ego-upload/v1.1.0/ego-upload.ts + -c ./.ego-confirmation.json + ./dist/picture-of-the-day@swsnr.de.shell-extension.zip + env: + EGO_USERNAME: ${{ secrets.EGO_USERNAME }} + EGO_PASSWORD: ${{ secrets.EGO_PASSWORD }}