Skip to content

Commit

Permalink
Test build
Browse files Browse the repository at this point in the history
  • Loading branch information
badrogger committed Mar 7, 2024
1 parent 3d3edf3 commit f4c271e
Showing 1 changed file with 50 additions and 48 deletions.
98 changes: 50 additions & 48 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ on:
- develop
- beta
- stable
push:
- test-build

jobs:
create_release:
Expand Down Expand Up @@ -47,10 +49,10 @@ jobs:
strategy:
matrix:
include:
- os: ubuntu-20.04
asset_name: sk-val-${{ needs.create_release.outputs.version }}-Linux-x86_64
# - os: macos-latest
# asset_name: sk-val-${{ needs.create_release.outputs.version }}-Darwin-x86_64
# - os: ubuntu-20.04
# asset_name: sk-val-${{ needs.create_release.outputs.version }}-Linux-x86_64
- os: macos-latest
asset_name: sk-val-${{ needs.create_release.outputs.version }}-Darwin-x86_64
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.9
Expand Down Expand Up @@ -93,50 +95,50 @@ jobs:
bash ./scripts/build.sh ${{ needs.create_release.outputs.version }} ${{ needs.create_release.outputs.branch }}
sudo shasum -a 512 ./dist/${{ matrix.asset_name }} | sudo tee > /dev/null ./dist/sha512sum
- name: Upload Release Asset Ubuntu
if: matrix.os == 'ubuntu-20.04'
id: upload-release-asset-ubuntu
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ needs.create_release.outputs.upload_url }}
asset_path: /home/ubuntu/dist/${{ matrix.asset_name }}
asset_name: ${{ matrix.asset_name }}
asset_content_type: application/octet-stream
# - name: Upload Release Asset Ubuntu
# if: matrix.os == 'ubuntu-20.04'
# id: upload-release-asset-ubuntu
# uses: actions/upload-release-asset@v1
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# with:
# upload_url: ${{ needs.create_release.outputs.upload_url }}
# asset_path: /home/ubuntu/dist/${{ matrix.asset_name }}
# asset_name: ${{ matrix.asset_name }}
# asset_content_type: application/octet-stream
- name: Upload release checksum
if: matrix.os == 'ubuntu-20.04'
id: upload-release-checksum-ubuntu
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ needs.create_release.outputs.upload_url }}
asset_path: /home/ubuntu/dist/sha512sum
asset_name: ${{ matrix.asset_name }}.sha512
asset_content_type: text/plain
# - name: Upload release checksum
# if: matrix.os == 'ubuntu-20.04'
# id: upload-release-checksum-ubuntu
# uses: actions/upload-release-asset@v1
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# with:
# upload_url: ${{ needs.create_release.outputs.upload_url }}
# asset_path: /home/ubuntu/dist/sha512sum
# asset_name: ${{ matrix.asset_name }}.sha512
# asset_content_type: text/plain
- name: Upload Release Asset Mac
if: matrix.os == 'macos-latest'
id: upload-release-asset-mac
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ needs.create_release.outputs.upload_url }}
asset_path: ./dist/${{ matrix.asset_name }}
asset_name: ${{ matrix.asset_name }}
asset_content_type: application/octet-stream
# - name: Upload Release Asset Mac
# if: matrix.os == 'macos-latest'
# id: upload-release-asset-mac
# uses: actions/upload-release-asset@v1
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# with:
# upload_url: ${{ needs.create_release.outputs.upload_url }}
# asset_path: ./dist/${{ matrix.asset_name }}
# asset_name: ${{ matrix.asset_name }}
# asset_content_type: application/octet-stream
- name: Upload release checksum
if: matrix.os == 'macos-latest'
id: upload-release-checksum-mac
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ needs.create_release.outputs.upload_url }}
asset_path: ./dist/sha512sum
asset_name: ${{ matrix.asset_name }}.sha512
asset_content_type: text/plain
# - name: Upload release checksum
# if: matrix.os == 'macos-latest'
# id: upload-release-checksum-mac
# uses: actions/upload-release-asset@v1
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# with:
# upload_url: ${{ needs.create_release.outputs.upload_url }}
# asset_path: ./dist/sha512sum
# asset_name: ${{ matrix.asset_name }}.sha512
# asset_content_type: text/plain

0 comments on commit f4c271e

Please sign in to comment.