This repository has been archived by the owner on Apr 16, 2024. It is now read-only.
Prepare 3.1.0 #16
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "Plugin release" | |
on: | |
push: | |
tags: | |
- 'v*' | |
jobs: | |
create-release: | |
name: "Create release" | |
runs-on: "ubuntu-latest" | |
steps: | |
- name: "Extract tag name" | |
run: | | |
echo "tag_name=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV | |
- name: "Checkout" | |
uses: "actions/checkout@v3" | |
- name: "Build package" | |
id: "build-package" | |
uses: "cconard96/tools/github-actions/build-package@debug/master" | |
with: | |
plugin-version: ${{ env.tag_name }} | |
- name: "Create release" | |
id: "create-release" | |
uses: "actions/create-release@v1" | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
tag_name: ${{ env.tag_name }} | |
release_name: ${{ env.tag_name }} | |
draft: true | |
- name: "Attach package to release" | |
uses: "actions/upload-release-asset@v1" | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
upload_url: ${{ steps.create-release.outputs.upload_url }} | |
asset_path: ${{ steps.build-package.outputs.package-path }} | |
asset_name: ${{ steps.build-package.outputs.package-basename }} | |
asset_content_type: " application/x-bzip2" |