Skip to content

Commit

Permalink
Update electron_release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
GeoffreyChen777 authored Jul 1, 2023
1 parent 2d74214 commit 94128fc
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions .github/workflows/electron_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,9 @@ jobs:
- name: Install Oracle Cloud CLI
run: |
brew install oci-cli && mkdir ~/.oci
echo -n ${{ secrets.OCI_CFG_DATA }} | base64 --decode --output config
echo -n ${{ secrets.OCI_CFG_DATA }} | base64 --decode -o config
mv config ~/.oci
echo -n ${{ secrets.OCI_KEY_DATA }} | base64 --decode --output oraclekey.cer
echo -n ${{ secrets.OCI_KEY_DATA }} | base64 --decode -o oraclekey.cer
mv oraclekey.cer ~/.oci
- name: Upload to Oracle Storage
Expand Down Expand Up @@ -149,9 +149,9 @@ jobs:
- name: Install Oracle Cloud CLI
run: |
brew install oci-cli && mkdir -p ~/.oci
echo -n ${{ secrets.OCI_CFG_DATA }} | base64 --decode --output config
echo -n ${{ secrets.OCI_CFG_DATA }} | base64 --decode -o config
mv config ~/.oci
echo -n ${{ secrets.OCI_KEY_DATA }} | base64 --decode --output oraclekey.cer
echo -n ${{ secrets.OCI_KEY_DATA }} | base64 --decode -o oraclekey.cer
mv oraclekey.cer ~/.oci
- name: Upload to Oracle Storage
Expand Down Expand Up @@ -220,13 +220,6 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Publish to WinGet
uses: vedantmgoyal2009/winget-releaser@v2
with:
identifier: FutureScholars.Paperlib
version: ${{ env.VERSION }}
token: ${{ secrets.WINGET_TOKEN }}

- name: Install Oracle Cloud CLI
run: |
pip install cffi
Expand All @@ -249,6 +242,13 @@ jobs:
oci os object put --bucket-name ${{ secrets.OCI_OS_BUCKET }} --file './release/${{ env.VERSION }}/Paperlib_${{ env.VERSION }}.exe.blockmap' --namespace ${{ secrets.OCI_OS_NAMESPACE }} --force --name 'distribution/electron-win/Paperlib_${{ env.VERSION }}.exe.blockmap'
oci os object put --bucket-name ${{ secrets.OCI_OS_BUCKET }} --file './release/${{ env.VERSION }}/latest.yml' --namespace ${{ secrets.OCI_OS_NAMESPACE }} --force --name distribution/electron-win/latest.yml
- name: Publish to WinGet
uses: vedantmgoyal2009/winget-releaser@v2
with:
identifier: FutureScholars.Paperlib
version: ${{ env.VERSION }}
token: ${{ secrets.WINGET_TOKEN }}

linux_develop:
runs-on: ubuntu-latest

Expand Down

0 comments on commit 94128fc

Please sign in to comment.