Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/actions/winget/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ async function run() {
for (const data of assets) {
const type = data.name.split('_').pop();
typeToUrl.set(type, {
url: data.browser_download_url,
url: data.url,
digest: data.digest,
});
}
Expand Down
69 changes: 52 additions & 17 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,22 @@ on:
push:
tags:
- '*'
permissions:
contents: write

jobs:
prerelease:
runs-on: ubuntu-latest
continue-on-error: true
steps:
- name: Create GitHub Release Draft
env:
GH_TOKEN: ${{ github.token }}
GH_REPO: ${{ github.repository }}
run: |
gh release create ${{ github.ref_name }} --title ${{ github.ref_name }}
build-1:
needs: prerelease
runs-on: windows-2022
steps:
- name: Checkout
Expand Down Expand Up @@ -401,10 +415,21 @@ jobs:
with:
finished: ${{ join(needs.*.outputs.finished) }}
from_artifact: true
- name: Download Artifact
uses: actions/download-artifact@v4
with:
name: chromium
- name: Update Release
env:
GH_TOKEN: ${{ github.token }}
GH_REPO: ${{ github.repository }}
run: |
gh release upload ${{ github.ref_name }} ungoogled-chromium* --clobber
outputs:
finished: ${{ steps.stage.outputs.finished }}

build-x86-1:
needs: prerelease
runs-on: windows-2022
steps:
- name: Checkout
Expand Down Expand Up @@ -817,10 +842,21 @@ jobs:
finished: ${{ join(needs.*.outputs.finished) }}
from_artifact: true
x86: true
- name: Download Artifact
uses: actions/download-artifact@v4
with:
name: chromium
- name: Update Release
env:
GH_TOKEN: ${{ github.token }}
GH_REPO: ${{ github.repository }}
run: |
gh release upload ${{ github.ref_name }} ungoogled-chromium* --clobber
outputs:
finished: ${{ steps.stage.outputs.finished }}

build-arm-1:
needs: prerelease
runs-on: windows-2022
steps:
- name: Checkout
Expand Down Expand Up @@ -1233,32 +1269,31 @@ jobs:
finished: ${{ join(needs.*.outputs.finished) }}
from_artifact: true
arm: true
- name: Download Artifact
uses: actions/download-artifact@v4
with:
name: chromium
- name: Update Release
env:
GH_TOKEN: ${{ github.token }}
GH_REPO: ${{ github.repository }}
run: |
gh release upload ${{ github.ref_name }} ungoogled-chromium* --clobber
outputs:
finished: ${{ steps.stage.outputs.finished }}

publish-release:
needs: [build-16, build-x86-16, build-arm-16]
runs-on: ubuntu-latest
steps:
- name: Download package
uses: actions/download-artifact@v4
with:
name: chromium
- name: Download x86 package
uses: actions/download-artifact@v4
with:
name: chromium-x86
- name: Download arm package
uses: actions/download-artifact@v4
with:
name: chromium-arm
- name: Publish release
id: publish
uses: softprops/action-gh-release@v1
with:
fail_on_unmatched_files: true
files: |
ungoogled-chromium*
env:
GH_TOKEN: ${{ github.token }}
GH_REPO: ${{ github.repository }}
run: |
assets=$(gh release view ${{ github.ref_name }} --json assets --jq '.assets')
echo "assets=$assets" >> $GITHUB_OUTPUT
outputs:
assets: ${{ steps.publish.outputs.assets }}
publish-winget:
Expand Down