Skip to content

Commit

Permalink
Add action to tag with the version
Browse files Browse the repository at this point in the history
  • Loading branch information
Mgldvd committed Dec 2, 2024
1 parent 4ac173d commit ef9055e
Showing 1 changed file with 52 additions and 37 deletions.
89 changes: 52 additions & 37 deletions .github/workflows/actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,56 +4,71 @@ on:
workflow_dispatch:
push:
paths:
- 'themes/*'
- 'themes/**'

jobs:
build:
runs-on: ubuntu-22.04
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: 🏅 Checkout code
uses: actions/checkout@v3

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.x'
- name: 🏅 Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.x'

- name: 🏅 Install Python dependencies
run: pip install -r requirements.txt
- name: 🏅 Install Python dependencies
run: pip install -r requirements.txt

- name: 🏅 Run Python scripts
run: python tools/pipe-generateJson.py
- name: 🏅 Run Python scripts
run: python tools/pipe-generateJson.py

- name: 🏅 Generate JSON files
run: python tools/pipe-generateJsonFiles.py
- name: 🏅 Generate JSON files
run: python tools/pipe-generateJsonFiles.py

- name: 🏅 Generate CSV
run: python tools/pipe-generateCsv.py
- name: 🏅 Generate CSV
run: python tools/pipe-generateCsv.py

- name: 🏅 Generate Installers
run: python tools/pipe-generateShFiles.py
- name: 🏅 Generate Installers
run: python tools/pipe-generateShFiles.py

- name: 🏅 Update themes in Gogh file
run: python tools/pipe-updateThemes.py
- name: 🏅 Update themes in Gogh file
run: python tools/pipe-updateThemes.py

- name: 🏅 Pipeline run date
run: python tools/pipe.py
- name: 🏅 Pipeline run date
run: python tools/pipe.py

- name: Set up Deno
uses: denoland/setup-deno@v2
with:
deno-version: v2.x
- name: 🏅 Set up Deno
uses: denoland/setup-deno@v2
with:
deno-version: v2.x

- name: 🏅 Run WCAG generator script with Deno
run: deno run --allow-all tools/pipe-generateWcag.js
- name: 🏅 Run WCAG generator script with Deno
run: deno run --allow-all tools/pipe-generateWcag.js

- name: Commit and push changes
env:
GIT_AUTHOR_NAME: github-actions[bot]
GIT_AUTHOR_EMAIL: github-actions[bot]@github.com
run: |
git config user.name github-actions[bot]
git config user.email github-actions[bot]@github.com
git add .
git commit -m "Gogh 🤖"
git push
- name: 🏅 Commit and push changes
env:
GIT_AUTHOR_NAME: github-actions[bot]
GIT_AUTHOR_EMAIL: github-actions[bot]@github.com
run: |
git config user.name github-actions[bot]
git config user.email github-actions[bot]@github.com
git add .
git commit -m "Gogh 🤖"
git push
- name: 🏅 Count total files in 'themes' directory
id: count_files
run: |
total_files=$(find themes -type f | wc -l)
echo "total_files=$total_files" >> $GITHUB_ENV
- name: 🏅 Create Release
uses: actions/create-release@v1
with:
tag_name: v${{ env.total_files }}
release_name: Release ${{ env.total_files }}
body: "Release with ${env.total_files} files in the 'themes' directory."
draft: false
prerelease: false

0 comments on commit ef9055e

Please sign in to comment.