diff --git a/.github/workflows/commit-build.yml b/.github/workflows/build.yml similarity index 77% rename from .github/workflows/commit-build.yml rename to .github/workflows/build.yml index 59f9f55..ebb7ed4 100644 --- a/.github/workflows/commit-build.yml +++ b/.github/workflows/build.yml @@ -1,4 +1,4 @@ -name: Commit Build +name: Build on: workflow_dispatch: inputs: @@ -86,3 +86,25 @@ jobs: --no-latest \ --version ${{ needs.metadata.outputs.version }} \ --target . + + publish: + runs-on: ubuntu-latest + if: ${{ github.event.inputs.version != "" }} + needs: + - metadata + - deploy + name: Publish Github Release + steps: + - name: Publish Release ${{ needs.metadata.outputs.version }} + uses: actions/github-script@v6 + env: + VERSION: ${{ needs.metadata.outputs.version }} + CHANGELOG: ${{ needs.metadata.outputs.changlelog }} + with: + script: | + github.rest.repos.createRelease({ + owner: context.repo.owner, + repo: context.repo.repo, + tag_name: process.env.VERSION, + prerelease: true, + }); diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml deleted file mode 100644 index b9a1674..0000000 --- a/.github/workflows/deploy.yml +++ /dev/null @@ -1,46 +0,0 @@ -name: Deploy -on: - workflow_dispatch: - push: - branch: [main] - paths: - - "config.yaml" -jobs: - metadata: - runs-on: ubuntu-latest - name: Metadata - outputs: - version: ${{ steps.version.outputs.VERSION }} - changlelog: ${{ steps.changlelog.outputs.CHANGELOG }} - steps: - - name: Check out repository - uses: actions/checkout@v3 - - name: Get Version - id: version - shell: bash - run: | - echo ::set-output name=VERSION::$(cat config.yaml | sed -nr 's/version: (.*)/\1/p') - - name: Get Changelog - id: changlelog - shell: bash - run: | - echo ::set-output name=CHANGELOG::$(cat CHANGELOG.md) - - publish: - runs-on: ubuntu-latest - needs: - - metadata - name: Publish Github Release - steps: - - name: Publish Release ${{ needs.metadata.outputs.version }} - uses: actions/github-script@v6 - env: - VERSION: ${{ needs.metadata.outputs.version }} - CHANGELOG: ${{ needs.metadata.outputs.changlelog }} - with: - script: | - github.rest.repos.createRelease({ - owner: context.repo.owner, - repo: context.repo.repo, - tag_name: process.env.VERSION, - }); diff --git a/CHANGELOG.md b/CHANGELOG.md index 9a6f3da..93ec193 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog ![GitHub release (latest by date)](https://img.shields.io/github/v/release/asosnovsky/Shortumation?label=&style=for-the-badge) +## [0.3.2] - Fixed Addon Image for arm-based devices + +- Using hypercon instead of uvicorn (this losses the rust dependency which makes it easier to install on arm) +- Pre-building web assets outside of docker (this takes the image size down and speeds up instaltion of addon) +- Updated build scripts to actually fail installation when build/prep steps fail +- Ensured that builds for all architecture run successfully +- Re-worked github actions (quicker test phases) + ## [0.3.1] - Increased Pagination + Restricted Repeat Node - Increased pagination to display up to 10,000 autos for now diff --git a/config.yaml b/config.yaml index a4a2d77..a759d58 100644 --- a/config.yaml +++ b/config.yaml @@ -1,5 +1,5 @@ name: Shortumation -version: v0.3.1 +version: v0.3.2 slug: shortumation image: asosnovsky/shortumation-{arch} url: "https://github.com/asosnovsky/Shortumation"