Skip to content

Commit

Permalink
Anaconda: switch from weekly to monthly release
Browse files Browse the repository at this point in the history
Closes #146
  • Loading branch information
bblanchon committed Dec 11, 2023
1 parent 7700c6f commit 42ebd53
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 6 deletions.
20 changes: 15 additions & 5 deletions .github/workflows/build-all.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,18 @@ on:
type: boolean
required: false
default: false
publish:
description: Publish release
release:
description: Publish GitHub release
type: boolean
required: false
default: false
nuget:
description: Publish on nuget.org
type: boolean
required: false
default: false
anaconda:
description: Publish on anaconda.org
type: boolean
required: false
default: false
Expand Down Expand Up @@ -559,7 +569,7 @@ jobs:
name: NuGet packages
path: '*.nupkg'
- name: Push to nuget.org
if: env.NUGET_API_KEY && startsWith(github.event.inputs.branch, 'chromium/') && github.event.inputs.version && github.event.inputs.publish == 'true'
if: env.NUGET_API_KEY && startsWith(github.event.inputs.branch, 'chromium/') && github.event.inputs.version && github.event.inputs.nuget == 'true'
run: nuget push -Source nuget.org -ApiKey ${{ secrets.NUGET_API_KEY }} *.nupkg
env:
NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }}
Expand Down Expand Up @@ -629,15 +639,15 @@ jobs:
run: conda install -yq anaconda-client
shell: bash -l {0}
- name: Upload to Anaconda
if: env.ANACONDA_API_TOKEN && startsWith(github.event.inputs.branch, 'chromium/') && github.event.inputs.version && github.event.inputs.publish == 'true'
if: env.ANACONDA_API_TOKEN && startsWith(github.event.inputs.branch, 'chromium/') && github.event.inputs.version && github.event.inputs.anaconda == 'true'
run: find conda/out -name 'pdfium-binaries-*.tar.bz2' -exec anaconda upload --force {} +
shell: bash -l {0}
env:
ANACONDA_API_TOKEN: ${{ secrets.ANACONDA_API_TOKEN }}

publish:
name: Publish Release
if: startsWith(github.event.inputs.branch, 'chromium/') && github.event.inputs.version && github.event.inputs.publish == 'true'
if: startsWith(github.event.inputs.branch, 'chromium/') && github.event.inputs.version && github.event.inputs.release == 'true'
runs-on: ubuntu-latest
needs:
- android_arm
Expand Down
8 changes: 7 additions & 1 deletion .github/workflows/trigger.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ jobs:
BUILD=$(echo "$VERSION" | cut -d. -f3)
echo "version=$VERSION" >> $GITHUB_OUTPUT
echo "branch=chromium/$BUILD" >> $GITHUB_OUTPUT
- name: Get date
id: date
run: |
echo "day=$(date +%-d)" >> $GITHUB_OUTPUT
- name: Trigger build
uses: benc-uk/workflow-dispatch@v1
with:
Expand All @@ -30,5 +34,7 @@ jobs:
"version": "${{ steps.chromium.outputs.version }}",
"is_debug": "false",
"enable_v8": "true",
"publish": "true"
"release": "true",
"nuget": "true",
"anaconda": "${{ steps.date.outputs.day <= 7 && 'true' || 'false' }}",
}

0 comments on commit 42ebd53

Please sign in to comment.