Skip to content

Adjust tab scroll button opacity and font settings #18

Adjust tab scroll button opacity and font settings

Adjust tab scroll button opacity and font settings #18

Workflow file for this run

name: Create Release and Upload Assets
env:
VERSION: 0.4.0
on:
push:
tags:
- 'v[0-9]+.*'
jobs:
# Extract Version from Tag
prepare:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Extract version from tag
id: get_version
run: echo "VERSION=${GITHUB_REF#refs/tags/v}" >> $GITHUB_ENV
Windows_Publish:
needs: prepare
runs-on: windows-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Build and Package for Windows
run: |
$items = Get-ChildItem -Recurse . | Where-Object { $_.FullName -notlike '*.git*' } | Select-Object -ExpandProperty FullName
$WINFILE = "clannad_theme_windows_${env:VERSION}.zip"
Compress-Archive -Path $items -DestinationPath $WINFILE -Force
- name: Upload Windows Artifact
uses: actions/upload-artifact@master
with:
name: windows-artifact
path: ./${{ env.WINFILE }}
- name: Print Version
run: |
echo "VERSION: ${{ env.VERSION }}"
echo "WINFILE: ${{ env.WINFILE }}"
Unix_Archive:
needs: prepare
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Build and Package for MacOS and Linux
run: |
VERSION=$VERSION
MACFILE="clannad_theme_macos_$VERSION.zip"
LINUXFILE="clannad_theme_linux_$VERSION.tar.gz"
zip -r $MACFILE . -x .git/\*
touch $LINUXFILE
tar --exclude=$LINUXFILE --exclude=$MACFILE -zcvf $LINUXFILE .
- name: Upload Unix Artifacts
uses: actions/upload-artifact@master
with:
name: unix-artifacts
path: |
./${{ env.MACFILE }}
./${{ env.LINUXFILE }}
- name: Print Version
run: |
echo "VERSION: ${{ env.VERSION }}"
echo "MACFILE: ${{ env.MACFILE }}"
echo "LINUXFILE: ${{ env.LINUXFILE }}"
Deploy_Artifacts:
needs: [Windows_Publish, Unix_Archive]
runs-on: ubuntu-latest
steps:
- name: Download All Artifacts
uses: actions/download-artifact@v2
with:
name: windows-artifact
- uses: actions/download-artifact@v2
with:
name: unix-artifacts
- name: Set env variables for filenames
run: |
echo "WINFILE=clannad_theme_windows_$VERSION.zip" >> $GITHUB_ENV
echo "MACFILE=clannad_theme_macos_$VERSION.zip" >> $GITHUB_ENV
echo "LINUXFILE=clannad_theme_linux_$VERSION.tar.gz" >> $GITHUB_ENV
- name: Create Release and Upload Artifacts
uses: ncipollo/[email protected]
with:
name: "${{ env.VERSION }}"
tag: ${{ github.ref }}
draft: false
prerelease: false
artifacts: "${{ env.WINFILE }}, ${{ env.MACFILE }}, ${{ env.LINUXFILE }}"
token: ${{ secrets.GITHUB_TOKEN }}
allowUpdates: true