Skip to content

Commit

Permalink
Merge pull request #22 from swsnr/21-upload-automatically
Browse files Browse the repository at this point in the history
Setup ego-upload in workflow
  • Loading branch information
swsnr authored Nov 19, 2023
2 parents 79f567d + b7623c7 commit 84143e6
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .ego-confirmation.json
Original file line number Diff line number Diff line change
@@ -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"
}
26 changes: 26 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]
env:
EGO_USERNAME: ${{ secrets.EGO_USERNAME }}
EGO_PASSWORD: ${{ secrets.EGO_PASSWORD }}

0 comments on commit 84143e6

Please sign in to comment.