From 5791c6ed557c1b2bf89eceada84f4719c4ce5dc1 Mon Sep 17 00:00:00 2001 From: Alexander Bays Date: Sun, 18 Aug 2024 18:55:14 -0500 Subject: [PATCH] 0.1.1 --- .github/workflows/release.yml | 49 ----------------------------------- 1 file changed, 49 deletions(-) delete mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml deleted file mode 100644 index 55379ef..0000000 --- a/.github/workflows/release.yml +++ /dev/null @@ -1,49 +0,0 @@ -name: Create and Upload Release -on: - push: - branches: - - main - tags: - - 'v*' - -jobs: - build: - runs-on: ubuntu-latest - permissions: - contents: write - steps: - - uses: actions/checkout@v3 - - name: Read version from manifest.json - id: version - run: | - echo "version=$(jq -r .version manifest.json)" >> $GITHUB_OUTPUT - - name: Extract changelog - id: changelog - run: | - CHANGELOG_CONTENT=$(sed -n "/## \[${{ steps.version.outputs.version }]\]/,/## \[/p" CHANGELOG.md | sed '$d') - echo "changelog<> $GITHUB_OUTPUT - echo "$CHANGELOG_CONTENT" >> $GITHUB_OUTPUT - echo "EOF" >> $GITHUB_OUTPUT - - name: Create Release Folder - run: mkdir -p releases - - name: Generate release tag - id: tag - run: | - echo "release_tag=v${{ steps.version.outputs.version }}_$(date +'%Y.%m.%d_%H-%M-%S')" >> $GITHUB_OUTPUT - - name: Archive Release - uses: thedoctor0/zip-release@0.7.5 - with: - type: 'zip' - filename: 'releases/release_${{ steps.version.outputs.version }}.zip' - exclusions: '*.git* /*node_modules/* .editorconfig' - - name: Create Release - uses: ncipollo/release-action@v1 - with: - artifacts: "releases/release_${{ steps.version.outputs.version }}.zip" - tag: ${{ steps.tag.outputs.release_tag }} - name: "Release ${{ steps.version.outputs.version }}" - body: | - ${{ steps.changelog.outputs.changelog }} - - For full changelog, please see [CHANGELOG.md](https://github.com/956MB/reddit-download-button/blob/main/CHANGELOG.md) - token: ${{ secrets.GITHUB_TOKEN }}