try sementic release
This commit is contained in:
53
.github/workflows/update-release-v1.yml
vendored
53
.github/workflows/update-release-v1.yml
vendored
@@ -10,9 +10,6 @@ name: Update Release V1.0
|
||||
on:
|
||||
workflow_dispatch
|
||||
|
||||
env:
|
||||
RELEASE_VERSION: V1.0
|
||||
|
||||
jobs:
|
||||
build:
|
||||
|
||||
@@ -32,13 +29,47 @@ jobs:
|
||||
cache: 'npm'
|
||||
- run: npm ci
|
||||
- run: npm run build --if-present
|
||||
- run: zip rclone-webui-release-${{ env.RELEASE_VERSION }}.zip $(find build)
|
||||
|
||||
- name: Update release
|
||||
uses: johnwbyrd/update-release@v1.0.0
|
||||
- run: zip build.zip $(find build)
|
||||
|
||||
- name: Generate version
|
||||
id: version
|
||||
uses: paulhatch/semantic-version@v4.0.2
|
||||
with:
|
||||
release: Release ${{ env.RELEASE_VERSION }}
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
files: ./rclone-webui-release-${{ env.RELEASE_VERSION }}.zip README.md
|
||||
prerelease: false
|
||||
# The prefix to use to identify tags
|
||||
tag_prefix: "v"
|
||||
# A string which, if present in a git commit, indicates that a change represents a
|
||||
# major (breaking) change, supports regular expressions wrapped with '/'
|
||||
major_pattern: "(MAJOR)"
|
||||
# Same as above except indicating a minor change, supports regular expressions wrapped with '/'
|
||||
minor_pattern: "(MINOR)"
|
||||
# A string to determine the format of the version output
|
||||
format: "${major}.${minor}.${patch}-prerelease${increment}"
|
||||
# Indicate whether short tags like 'v1' should be supported. If false only full
|
||||
# tags like 'v1.0.0' will be recognized.
|
||||
short_tags: true
|
||||
# If this is set to true, *every* commit will be treated as a new version.
|
||||
bump_each_commit: false
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Create Release
|
||||
id: create_release
|
||||
uses: actions/create-release@v1
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
with:
|
||||
tag_name: ${{ steps.version.version_tag }}
|
||||
release_name: ${{ steps.version.version }}
|
||||
draft: false
|
||||
prerelease: true
|
||||
owner: ${{ github.actor }}
|
||||
|
||||
- name: Upload Release Asset
|
||||
id: upload-release-asset
|
||||
uses: actions/upload-release-asset@v1
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
with:
|
||||
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
|
||||
asset_path: ./build.zip
|
||||
asset_name: build.zip
|
||||
asset_content_type: application/zip
|
||||
|
Reference in New Issue
Block a user