Skip to content

Commit

Permalink
Forgive me for my sins
Browse files Browse the repository at this point in the history
  • Loading branch information
gj committed Jan 13, 2024
1 parent db69a9c commit 07f4c56
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ jobs:
steps:
- uses: actions/checkout@v2
with:
ref: "v${{ github.event.inputs.version }}"
ref: "v0.27.3"
- name: Import GPG key
id: import_gpg
uses: crazy-max/ghaction-import-gpg@v2
Expand All @@ -59,19 +59,19 @@ jobs:
echo "name: ${{ steps.import_gpg.outputs.name }}"
echo "email: ${{ steps.import_gpg.outputs.email }}"
- run: |
curl -L -H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" -H "Accept: application/octet-stream" $(curl -H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" -s https://api.github.com/repos/osohq/oso/releases/tags/v${{ github.event.inputs.version }} | jq -r '.assets[] | select(.name == "oso-lib-${{ github.event.inputs.version }}.zip") | .url') --output oso-lib-${{ github.event.inputs.version }}.zip
- run: unzip oso-lib-${{ github.event.inputs.version }}.zip -d oso-lib-${{ github.event.inputs.version }}
curl -L -H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" -H "Accept: application/octet-stream" $(curl -H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" -s https://api.github.com/repos/osohq/oso/releases/tags/v0.27.3 | jq -r '.assets[] | select(.name == "oso-lib-0.27.3.zip") | .url') --output oso-lib-0.27.3.zip
- run: unzip oso-lib-0.27.3.zip -d oso-lib-0.27.3
- uses: actions/setup-java@v1
with:
java-version: "11"
- name: Copy libraries into resources.
run: |
mkdir -p languages/java/oso/src/main/resources/linux
cp -r oso-lib-${{ github.event.inputs.version }}/libpolar-x86_64.so languages/java/oso/src/main/resources/linux/libpolar.so
cp -r oso-lib-0.27.3/libpolar-x86_64.so languages/java/oso/src/main/resources/linux/libpolar.so
mkdir -p languages/java/oso/src/main/resources/macos
cp -r oso-lib-${{ github.event.inputs.version }}/libpolar-macOS-fat.dylib languages/java/oso/src/main/resources/macos/libpolar.dylib
cp -r oso-lib-0.27.3/libpolar-macOS-fat.dylib languages/java/oso/src/main/resources/macos/libpolar.dylib
mkdir -p languages/java/oso/src/main/resources/win
cp -r oso-lib-${{ github.event.inputs.version }}/polar.dll languages/java/oso/src/main/resources/win/
cp -r oso-lib-0.27.3/polar.dll languages/java/oso/src/main/resources/win/
- run: |
GPG_TTY=$(tty) mvn -q clean source:jar deploy -DuniqueVersion=false -Dmaven.source.useDefaultManifestFile=true -DdeplyAtEnd=true -Dmaven.source.includePom=true -Dmaven.install.skip=true --settings settings.xml
working-directory: languages/java/oso
Expand Down

0 comments on commit 07f4c56

Please sign in to comment.