diff --git a/.github/release.yml b/.github/release.yml new file mode 100644 index 0000000..69b1ad4 --- /dev/null +++ b/.github/release.yml @@ -0,0 +1,17 @@ +changelog: + exclude: + labels: + - ignore-for-release + categories: + - title: "Breaking Changes :boom:" + labels: + - breaking-change + - title: "New Features :sparkles:" + labels: + - enhancement + - title: "Bug Fixes :bug:" + labels: + - bug + - title: Other Changes + labels: + - "*" diff --git a/.github/workflows/build-and-test.yml b/.github/workflows/build-and-test.yml index b59f421..821dbac 100644 --- a/.github/workflows/build-and-test.yml +++ b/.github/workflows/build-and-test.yml @@ -91,13 +91,13 @@ jobs: - name: Rename ISO run: | - mv build/deploy.iso ${{ env.IMAGE_NAME }}-${{ env.VERSION }}.iso + mv build/deploy.iso build/${{ env.IMAGE_NAME }}-${{ env.VERSION }}.iso - name: Upload ISO as artifact uses: actions/upload-artifact@v4 with: name: ${{ env.IMAGE_NAME }}-${{ env.VERSION }}.iso - path: end_iso/*.iso + path: build/*.iso if-no-files-found: error retention-days: 0 compression-level: 0 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..f6a4b49 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,34 @@ +on: + push: + tags: + - 'v[0-9]+.[0-9]+.[0-9]+' + +jobs: + release: + runs-on: ubuntu-latest + steps: + - name: Create Draft Release + id: create_release + uses: actions/create-release@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + tag_name: ${{ github.ref_name }} + release_name: "Release ${{ github.ref_name }}" + draft: true + prerelease: false + + #- uses: actions/upload-release-asset@v1.0.1 + # env: + # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + # with: + # upload_url: ${{ steps.create_release.outputs.upload_url }} + # asset_path: ./my-artifact.zip + # asset_name: my-artifact.zip + # asset_content_type: application/zip + + - uses: eregon/publish-release@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + release_id: ${{ steps.create_release.outputs.id }} \ No newline at end of file