mirror of
https://github.com/hexahigh/portfolio.git
synced 2025-12-12 03:25:06 +01:00
add planktos workflow
This commit is contained in:
parent
f790247239
commit
34fac17435
34
.github/workflows/planktos.yml
vendored
Normal file
34
.github/workflows/planktos.yml
vendored
Normal file
@ -0,0 +1,34 @@
|
||||
name: Create planktos torrent
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
push:
|
||||
branches: [ main ]
|
||||
|
||||
jobs:
|
||||
sitemap_job:
|
||||
runs-on: ubuntu-latest
|
||||
name: Create planktos torrent
|
||||
|
||||
steps:
|
||||
- name: Checkout the repo
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Install npm and the required packages
|
||||
run: |
|
||||
sudo apt update
|
||||
sudo apt install nodejs
|
||||
sudo apt install npm
|
||||
sudo npm install -g planktos
|
||||
|
||||
- name: Create the torrent file
|
||||
run: |
|
||||
planktos ./
|
||||
|
||||
- name: Commit the changes
|
||||
uses: stefanzweifel/git-auto-commit-action@v4
|
||||
with:
|
||||
commit_message: "Github Action: Updated planktos torrent file"
|
||||
branch: ${{ github.ref }}
|
||||
Loading…
x
Reference in New Issue
Block a user