Skip to content

Commit

Permalink
mayor update to release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
flatsiedatsie authored Nov 14, 2022
1 parent 0408008 commit a3af418
Showing 1 changed file with 29 additions and 22 deletions.
51 changes: 29 additions & 22 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,7 @@ jobs:
'darwin-x64',
]
pair: [
'python:3.5',
'python:3.6',
'python:3.7',
'python:3.8',
'python:3.9',
]
include:
Expand All @@ -58,38 +55,48 @@ jobs:

steps:
- name: Download upload_url
uses: actions/download-artifact@v1
uses: actions/download-artifact@v3
with:
name: upload_url
path: upload_url
- name: Set upload_url
run: echo "UPLOAD_URL=$(cat upload_url/upload_url)" >> $GITHUB_ENV
- name: Set release version
run: echo "RELEASE_VERSION=${GITHUB_REF:10}" >> $GITHUB_ENV
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Use Python ${{ matrix.version }}
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.version }}
- name: Build adapter
run: |
./build.sh "${{ matrix.platform }}" "${{ matrix.language }}" "${{ matrix.version }}"
- name: Upload Release Asset
id: upload-release-asset
uses: actions/upload-release-asset@v1.0.1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ env.UPLOAD_URL }}
asset_path: Candle-manager-addon-${{ env.RELEASE_VERSION }}-${{ matrix.platform }}-v${{ matrix.version }}.tgz
asset_name: Candle-manager-addon-${{ env.RELEASE_VERSION }}-${{ matrix.platform }}-v${{ matrix.version }}.tgz
asset_content_type: application/zip
- name: Upload Release Asset Checksum
id: upload-release-asset-checksum
uses: actions/upload-release-asset@v1.0.1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
#uses: actions/upload-release-asset@v1.0.1
uses: softprops/action-gh-release@v1
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
token: ${{ github.token }}
upload_url: ${{ env.UPLOAD_URL }}
asset_path: Candle-manager-addon-${{ env.RELEASE_VERSION }}-${{ matrix.platform }}-v${{ matrix.version }}.tgz.sha256sum
asset_name: Candle-manager-addon-${{ env.RELEASE_VERSION }}-${{ matrix.platform }}-v${{ matrix.version }}.tgz.sha256sum
asset_content_type: text/plain
files: |
Candle-manager-addon-${{ env.RELEASE_VERSION }}-${{ matrix.platform }}-v${{ matrix.version }}.tgz
Candle-manager-addon-${{ env.RELEASE_VERSION }}-${{ matrix.platform }}-v${{ matrix.version }}.tgz.sha256sum
#with:
# upload_url: ${{ env.UPLOAD_URL }}
# asset_path: Candle-manager-addon-${{ env.RELEASE_VERSION }}-${{ matrix.platform }}-v${{ matrix.version }}.tgz
# asset_name: Candle-manager-addon-${{ env.RELEASE_VERSION }}-${{ matrix.platform }}-v${{ matrix.version }}.tgz
# asset_content_type: application/zip
# - name: Upload Release Asset Checksum
# id: upload-release-asset-checksum
# uses: actions/upload-release-asset@v1.0.1
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# with:
# upload_url: ${{ env.UPLOAD_URL }}
# asset_path: Candle-manager-addon-${{ env.RELEASE_VERSION }}-${{ matrix.platform }}-v${{ matrix.version }}.tgz.sha256sum
# asset_name: Candle-manager-addon-${{ env.RELEASE_VERSION }}-${{ matrix.platform }}-v${{ matrix.version }}.tgz.sha256sum
# asset_content_type: text/plain

0 comments on commit a3af418

Please sign in to comment.