feat: Add Gitea workflow to build and release the Firefox extension.
This commit is contained in:
@@ -17,7 +17,7 @@ jobs:
|
|||||||
image: node:20-alpine
|
image: node:20-alpine
|
||||||
steps:
|
steps:
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: apk add --no-cache zip jq git
|
run: apk add --no-cache zip jq git curl
|
||||||
|
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
@@ -51,11 +51,11 @@ jobs:
|
|||||||
cp build/container-bookmarks-${{ steps.version.outputs.version }}.xpi \
|
cp build/container-bookmarks-${{ steps.version.outputs.version }}.xpi \
|
||||||
build/container-bookmarks-${{ steps.version.outputs.version }}.zip
|
build/container-bookmarks-${{ steps.version.outputs.version }}.zip
|
||||||
|
|
||||||
- name: Upload artifact
|
- name: Upload to Gitea Packages
|
||||||
uses: actions/upload-artifact@v3
|
run: |
|
||||||
with:
|
curl --fail --user "${GITHUB_ACTOR}:${{ secrets.GITHUB_TOKEN }}" \
|
||||||
name: container-bookmarks-${{ steps.version.outputs.version }}
|
--upload-file "build/container-bookmarks-${{ steps.version.outputs.version }}.xpi" \
|
||||||
path: build/*.xpi
|
"${GITHUB_SERVER_URL}/api/packages/${GITHUB_REPOSITORY_OWNER}/generic/container-bookmarks/${{ steps.version.outputs.version }}/container-bookmarks-${{ steps.version.outputs.version }}.xpi"
|
||||||
|
|
||||||
release:
|
release:
|
||||||
runs-on: docker
|
runs-on: docker
|
||||||
@@ -65,7 +65,8 @@ jobs:
|
|||||||
if: startsWith(github.ref, 'refs/tags/v')
|
if: startsWith(github.ref, 'refs/tags/v')
|
||||||
steps:
|
steps:
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: apk add --no-cache jq git
|
run: apk add --no-cache jq git curl
|
||||||
|
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
@@ -75,11 +76,11 @@ jobs:
|
|||||||
VERSION=$(jq -r '.version' manifest.json)
|
VERSION=$(jq -r '.version' manifest.json)
|
||||||
echo "version=$VERSION" >> $GITHUB_OUTPUT
|
echo "version=$VERSION" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
- name: Download artifact
|
- name: Download from Gitea Packages
|
||||||
uses: actions/download-artifact@v3
|
run: |
|
||||||
with:
|
mkdir -p build
|
||||||
name: container-bookmarks-${{ steps.version.outputs.version }}
|
curl --fail -o "build/container-bookmarks-${{ steps.version.outputs.version }}.xpi" \
|
||||||
path: build/
|
"${GITHUB_SERVER_URL}/api/packages/${GITHUB_REPOSITORY_OWNER}/generic/container-bookmarks/${{ steps.version.outputs.version }}/container-bookmarks-${{ steps.version.outputs.version }}.xpi"
|
||||||
|
|
||||||
- name: Create Release
|
- name: Create Release
|
||||||
uses: softprops/action-gh-release@v1
|
uses: softprops/action-gh-release@v1
|
||||||
|
|||||||
Reference in New Issue
Block a user