Update GitHub action

This commit is contained in:
c-bata
2022-06-08 15:38:33 +09:00
parent cb1b47c1cb
commit 60450623b1
3 changed files with 5 additions and 26 deletions
+1 -4
View File
@@ -34,10 +34,7 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
wget https://github.com/tcnksm/ghr/releases/download/v0.14.0/ghr_v0.14.0_linux_amd64.tar.gz
tar -xzf ghr_v*_linux_amd64.tar.gz
export TAGNAME=$(jq --raw-output .ref "$GITHUB_EVENT_PATH" | sed -e "s/refs\/tags\///")
cp ./optuna_dashboard/public/bundle.js ./dist/
cp ./optuna_dashboard/public/bundle.js.LICENSE.txt ./dist/
./ghr_v0.14.0_linux_amd64/ghr -n ${TAGNAME} -b ${TAGNAME} -draft ${TAGNAME} dist/
gh release create ${TAGNAME} --draft dist/*
+2 -20
View File
@@ -11,27 +11,9 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup Node
uses: actions/setup-node@v2
with:
node-version: '16'
- run: npm install
- run: npm run build:prd
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.9'
- name: Install dependencies
run: |
python -m pip install --upgrade pip setuptools
pip install --progress-bar off wheel twine
- run: python setup.py sdist bdist_wheel
- run: twine check dist/*
- run: gh release download $(jq --raw-output .tag_name "$GITHUB_EVENT_PATH") ./dist
- name: Publish distribution to PyPI
uses: pypa/gh-action-pypi-publish@v1.4.1
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI_PASSWORD }}
+2 -2
View File
@@ -46,10 +46,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup Python 3.9
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: '3.9'
python-version: '3.x'
architecture: x64
- name: Install dependencies
run: |