mirror of
https://github.com/MidnightCommander/skins.git
synced 2026-02-02 11:12:02 -08:00
Bumps [actions/checkout](https://github.com/actions/checkout) from 5 to 6. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v5...v6) --- updated-dependencies: - dependency-name: actions/checkout dependency-version: '6' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
55 lines
1.1 KiB
YAML
55 lines
1.1 KiB
YAML
name: Deploy static content to Pages
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
repository_dispatch:
|
|
types:
|
|
- deploy-skins
|
|
workflow_dispatch:
|
|
|
|
permissions:
|
|
contents: read
|
|
pages: write
|
|
id-token: write
|
|
|
|
concurrency:
|
|
group: "pages"
|
|
cancel-in-progress: false
|
|
|
|
jobs:
|
|
deploy:
|
|
runs-on: ubuntu-latest
|
|
|
|
environment:
|
|
name: github-pages
|
|
url: ${{ steps.deployment.outputs.page_url }}
|
|
|
|
steps:
|
|
- uses: actions/checkout@v6
|
|
- uses: actions/checkout@v6
|
|
with:
|
|
repository: MidnightCommander/mc
|
|
path: mc
|
|
|
|
- run: |
|
|
cp -r src dist
|
|
|
|
REV_SE=$(git rev-parse --short HEAD)
|
|
REV_MC=$(cd mc; git rev-parse --short HEAD)
|
|
|
|
cp mc/misc/skins/*.ini dist/skins/
|
|
python3 generate-skin-list.py dist/skins
|
|
mv skins.json dist/
|
|
|
|
sed -i "s/REV_SE/$REV_SE/g" dist/index.html
|
|
sed -i "s/REV_MC/$REV_MC/g" dist/index.html
|
|
|
|
- uses: actions/configure-pages@v5
|
|
- uses: actions/upload-pages-artifact@v4
|
|
with:
|
|
path: 'dist'
|
|
- uses: actions/deploy-pages@v4
|
|
id: deployment
|