Compare commits
6 Commits
dev
...
test-uploa
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
9688560466 | ||
|
|
2fe38a18ab | ||
|
|
8b53839526 | ||
|
|
3a18ed36d4 | ||
|
|
dd2bf04e2d | ||
|
|
20ded0fcef |
77
.github/workflows/release.yaml
vendored
77
.github/workflows/release.yaml
vendored
@@ -4,6 +4,7 @@ on:
|
||||
release:
|
||||
types:
|
||||
- published
|
||||
workflow_dispatch:
|
||||
|
||||
env:
|
||||
PYTHON_VERSION: 3.8
|
||||
@@ -14,12 +15,13 @@ jobs:
|
||||
release:
|
||||
name: Release
|
||||
runs-on: ubuntu-latest
|
||||
if: false
|
||||
steps:
|
||||
- name: Checkout the repository
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: Verify version
|
||||
uses: home-assistant/actions/helpers/verify-version@master
|
||||
# - name: Verify version
|
||||
# uses: home-assistant/actions/helpers/verify-version@master
|
||||
|
||||
- name: Set up Python ${{ env.PYTHON_VERSION }}
|
||||
uses: actions/setup-python@v2
|
||||
@@ -35,22 +37,81 @@ jobs:
|
||||
- name: Install dependencies
|
||||
run: yarn install
|
||||
|
||||
- name: Download Translations
|
||||
run: ./script/translations_download
|
||||
env:
|
||||
LOKALISE_TOKEN: ${{ secrets.LOKALISE_TOKEN }}
|
||||
# - name: Download Translations
|
||||
# run: ./script/translations_download
|
||||
# env:
|
||||
# LOKALISE_TOKEN: ${{ secrets.LOKALISE_TOKEN }}
|
||||
- name: Build and release package
|
||||
run: |
|
||||
python3 -m pip install twine build
|
||||
export TWINE_USERNAME="__token__"
|
||||
export TWINE_PASSWORD="${{ secrets.TWINE_TOKEN }}"
|
||||
# export TWINE_USERNAME="__token__"
|
||||
# export TWINE_PASSWORD="${{ secrets.TWINE_TOKEN }}"
|
||||
|
||||
script/release
|
||||
|
||||
- name: Upload artifacts
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: dist
|
||||
path: ./dist/
|
||||
|
||||
test-upload:
|
||||
name: Temp upload build artifacts
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout the repository
|
||||
uses: actions/checkout@v2
|
||||
- name: Copy dist files
|
||||
run: cp -r dist_2/ dist/
|
||||
- name: Upload artifacts
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: dist
|
||||
path: ./dist/
|
||||
|
||||
upload-release-assets:
|
||||
name: Upload release assets
|
||||
runs-on: ubuntu-latest
|
||||
needs: test-upload
|
||||
if: github.event_name == 'release'
|
||||
permissions:
|
||||
contents: write
|
||||
steps:
|
||||
- name: Download build artifacts
|
||||
uses: actions/download-artifact@v2
|
||||
- name: Upload release assets
|
||||
uses: cdce8p/ha-actions/helpers/release-assets@release-assets
|
||||
with:
|
||||
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||
# - name: Get build file names
|
||||
# id: file-names
|
||||
# run: |
|
||||
# echo "::set-output name=sdist::$(ls dist/ | grep '.*.tar.gz' | tail -n 1)"
|
||||
# echo "::set-output name=wheel::$(ls dist/ | grep '.*.whl' | tail -n 1)"
|
||||
# - name: Upload release asset (sdist)
|
||||
# uses: actions/upload-release-asset@v1
|
||||
# env:
|
||||
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
# with:
|
||||
# upload_url: ${{ github.event.release.upload_url }}
|
||||
# asset_path: ./dist/${{ steps.file-names.outputs.sdist }}
|
||||
# asset_name: ${{ steps.file-names.outputs.sdist }}
|
||||
# asset_content_type: application/gzip
|
||||
# - name: Upload release asset (wheel)
|
||||
# uses: actions/upload-release-asset@v1
|
||||
# env:
|
||||
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
# with:
|
||||
# upload_url: ${{ github.event.release.upload_url }}
|
||||
# asset_path: ./dist/${{ steps.file-names.outputs.wheel }}
|
||||
# asset_name: ${{ steps.file-names.outputs.wheel }}
|
||||
# asset_content_type: application/zip
|
||||
|
||||
wheels-init:
|
||||
name: Init wheels build
|
||||
needs: release
|
||||
runs-on: ubuntu-latest
|
||||
if: false
|
||||
steps:
|
||||
- name: Generate requirements.txt
|
||||
run: |
|
||||
|
||||
BIN
dist_2/home-assistant-frontend-20220205.0.tar.gz
Normal file
BIN
dist_2/home-assistant-frontend-20220205.0.tar.gz
Normal file
Binary file not shown.
BIN
dist_2/home_assistant_frontend-20220205.0-py3-none-any.whl
Normal file
BIN
dist_2/home_assistant_frontend-20220205.0-py3-none-any.whl
Normal file
Binary file not shown.
@@ -13,4 +13,4 @@ script/build_frontend
|
||||
|
||||
rm -rf dist home_assistant_frontend.egg-info
|
||||
python3 -m build
|
||||
python3 -m twine upload dist/*.whl --skip-existing
|
||||
# python3 -m twine upload dist/*.whl --skip-existing
|
||||
|
||||
Reference in New Issue
Block a user