diff options
author | Liam Cain <hi@liamca.in> | 2022-08-22 15:54:25 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-22 15:54:25 -0400 |
commit | f6e49598857651cc5a0dc692019cede24ca2b8d3 (patch) | |
tree | 9976d9bcca7a57defde0eae9e9a523b0d3677819 /.github/workflows/release-version.yml | |
parent | 773b0c5ca9799e273e2c6f86445242ba2993bbc7 (diff) |
Add README with basic info on how to use this repo
Diffstat (limited to '.github/workflows/release-version.yml')
-rw-r--r-- | .github/workflows/release-version.yml | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/.github/workflows/release-version.yml b/.github/workflows/release-version.yml new file mode 100644 index 0000000..c1da420 --- /dev/null +++ b/.github/workflows/release-version.yml @@ -0,0 +1,50 @@ +name: Publish new theme version + +on: + push: + # Sequence of patterns matched against refs/tags + tags: + - "*" # Push events to matching any tag format, i.e. 1.0, 20.15.10 + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + - name: Bundle + id: bundle + run: | + ls + echo "::set-output name=tag_name::$(git tag --sort version:refname | tail -n 1)" + - name: Create Release + id: create_release + uses: actions/create-release@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + VERSION: ${{ github.ref }} + with: + tag_name: ${{ github.ref }} + release_name: ${{ github.ref }} + draft: false + prerelease: false + - name: Upload manifest.json + id: upload-manifest + uses: actions/upload-release-asset@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + upload_url: ${{ steps.create_release.outputs.upload_url }} + asset_path: ./manifest.json + asset_name: manifest.json + asset_content_type: application/json + - name: Upload theme.css + id: upload-css + uses: actions/upload-release-asset@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + upload_url: ${{ steps.create_release.outputs.upload_url }} + asset_path: ./theme.css + asset_name: theme.css + asset_content_type: text/css |