Skip to content

Commit

Permalink
try new build without artefact stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
pchr-srf committed Jan 5, 2024
1 parent 7554ac2 commit 6c103a3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 38 deletions.
39 changes: 2 additions & 37 deletions .github/workflows/auto-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,37 +22,7 @@ jobs:
# ..
- name: Zip
run: |
zip -r chrome-extension-test.zip dist -x '*.git*'
# https://github.com/actions/upload-artifact
- name: artifact
uses: actions/upload-artifact@v4
id: artifact-upload-step
with:
# Name of the artifact to upload.
# Optional. Default is 'artifact'
name: my-artifact

# A file, directory or wildcard pattern that describes what to upload
# Required.
path: chrome-extension-test.zip

# The desired behavior if no files are found using the provided path.
# Available Options:
# warn: Output a warning but do not fail the action
# error: Fail the action with an error message
# ignore: Do not output any warnings or errors, the action does not fail
# Optional. Default is 'warn'
if-no-files-found: error

# Duration after which artifact will expire in days. 0 means using default retention.
# Minimum 1 day.
# Maximum 90 days unless changed from the repository settings page.
# Optional. Defaults to repository settings.
retention-days: 1

- name: Output artifact ID
run: echo 'Artifact ID is ${{ steps.artifact-upload-step.outputs.artifact-id }}'
zip -r chrome-extension.zip dist -x '*.git*'
# publishing
Expand All @@ -70,18 +40,13 @@ jobs:
EXTENSION_ID: ${{ secrets.EXTENSION_ID }}

steps:
- name: Download bundle artifact
uses: actions/download-artifact@v4
with:
name: my-artifact

- name: Install webstore cli
run: |-
npm install -g chrome-webstore-upload-cli
- name: Upload step
run: |
chrome-webstore-upload upload --source chrome-extension-test.zip --auto-publish
chrome-webstore-upload upload --source chrome-extension.zip --auto-publish
env:
EXTENSION_ID: goecnpeohpdpecpaiobjeclendfhnlmj
CLIENT_ID: ${{ secrets.CLIENT_ID }}
Expand Down
2 changes: 1 addition & 1 deletion src/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"manifest_version": 3,
"name": "SRF Browser Extension",
"description": "Little helper for SRF developers and CMS users",
"version": "1.5.0",
"version": "1.5.1",
"action": {
"default_popup": "popup.html"
},
Expand Down

0 comments on commit 6c103a3

Please sign in to comment.