generated from swsnr/gnome-shell-extension-typescript-template
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #22 from swsnr/21-upload-automatically
Setup ego-upload in workflow
- Loading branch information
Showing
2 changed files
with
30 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 }} |