diff --git a/.github/workflows/tag.yml b/.github/workflows/tag.yml deleted file mode 100644 index ea67a6f..0000000 --- a/.github/workflows/tag.yml +++ /dev/null @@ -1,30 +0,0 @@ -name: Create Release - -on: - push: - tags: - - '*' - -jobs: - create-release: - runs-on: ubuntu-latest - - steps: - - name: Checkout - uses: actions/checkout@v2 - - - name: Create changelog text - id: changelog - uses: loopwerk/tag-changelog@v1 - with: - token: ${{ secrets.GITHUB_TOKEN }} - config_file: .github/workflows/tag_changelog_config.js - - - name: Create release - uses: actions/create-release@latest - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - tag_name: ${{ github.ref }} - release_name: ${{ github.ref }} - body: ${{ steps.changelog.outputs.changes }} diff --git a/.github/workflows/tag_changelog_config.js b/.github/workflows/tag_changelog_config.js deleted file mode 100644 index 81d7ae5..0000000 --- a/.github/workflows/tag_changelog_config.js +++ /dev/null @@ -1,15 +0,0 @@ -module.exports = { - types: [ - { types: ["feat", "feature"], label: "๐ŸŽ‰ New Features" }, - { types: ["fix", "bugfix"], label: "๐Ÿ› Bugfixes" }, - { types: ["improvements", "enhancement"], label: "๐Ÿ”จ Improvements" }, - { types: ["perf"], label: "๐ŸŽ๏ธ Performance Improvements" }, - { types: ["build", "ci"], label: "๐Ÿ—๏ธ Build System" }, - { types: ["refactor"], label: "๐Ÿชš Refactors" }, - { types: ["doc", "docs"], label: "๐Ÿ“š Documentation Changes" }, - { types: ["test", "tests"], label: "๐Ÿ” Tests" }, - { types: ["style"], label: "๐Ÿ’… Code Style Changes" }, - { types: ["chore"], label: "๐Ÿงน Chores" }, - { types: ["other"], label: "Other Changes" }, - ], -}; diff --git a/.woodpecker.yml b/.woodpecker.yml index 5c43b3d..4af440e 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -53,3 +53,17 @@ pipeline: files: release/* when: event: tag + + github-release: + image: plugins/github-release + settings: + api_key: + from_secret: github-api-key + base_url: https://github.com/api/v3/ + upload_url: https://github.com/api/uploads + files: release/* + environment: + - DRONE_REPO_OWNER=jackbondpreston + - CI_REPO_OWNER=jackbondpreston + when: + event: tag