Skip to content

Commit

Permalink
test5
Browse files Browse the repository at this point in the history
  • Loading branch information
RyosukeDTomita committed Aug 18, 2024
1 parent a2c5fd7 commit 71fb18b
Showing 1 changed file with 15 additions and 17 deletions.
32 changes: 15 additions & 17 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ jobs:
create-package:
runs-on: ubuntu-latest
permissions:
contents: read
# contents: read
contents: write

steps:
# checkout repository to runner
Expand All @@ -38,29 +39,26 @@ jobs:
rye sync
rye build
release-package:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./dist
permissions:
contents: write
needs: create-package
# release-package:
# runs-on: ubuntu-latest
# permissions:
# contents: write
# needs: create-package

steps:
- name: clone application source code
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
# steps:
# - name: clone application source code
# uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7

# NOTE: matrix内で環境変数を展開するこてゃできないので愚直にファイル名を指定する
# NOTE: matrix内でenv.hogehogeのように展開できないので愚直にファイル名を指定する
- name: upload Releases whl
uses: shogo82148/actions-upload-release-asset@8f032eff0255912cc9c8455797fd6d72f25c7ab7 # v1.7.5
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: "my_portscanner-${{ env.RELEASE_VERSION }}-py3-none-any.whl"
asset_name: "my_portscanner-${{ env.RELEASE_VERSION }}-py3-none-any.whl"
asset_path: "./dist/my_portscanner-${{ env.RELEASE_VERSION }}-py3-none-any.whl"
asset_name: "./dist/my_portscanner-${{ env.RELEASE_VERSION }}-py3-none-any.whl"
- name: upload Releases tar.gz
uses: shogo82148/actions-upload-release-asset@8f032eff0255912cc9c8455797fd6d72f25c7ab7 # v1.7.5
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: "my_portscanner-${{ env.RELEASE_VERSION }}.tar.gz"
asset_name: "my_portscanner-${{ env.RELEASE_VERSION }}.tar.gz"
asset_path: "./dist/my_portscanner-${{ env.RELEASE_VERSION }}.tar.gz"
asset_name: "./dist/my_portscanner-${{ env.RELEASE_VERSION }}.tar.gz"

0 comments on commit 71fb18b

Please sign in to comment.