Skip to content

formatted images to 16:9 #6

formatted images to 16:9

formatted images to 16:9 #6

Workflow file for this run

name: Publish new theme version
on:
push:
# Sequence of patterns matched against refs/tags
tags:
- "*" # Match any tag format, e.g., 1.0, 20.15.10
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: write # Ensure GITHUB_TOKEN has write permissions
steps:
- uses: actions/checkout@v3
- name: Extract Tag Name
id: tag_name
run: echo "TAG_NAME=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV
- 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: 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