mirror of
https://github.com/kevquirk/simple.css.git
synced 2026-11-30 16:48:18 +01:00
Removed GitHub actions (not needed here)
This commit is contained in:
@@ -1,54 +0,0 @@
|
||||
name: Deploy to BunnyCDN Storage
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ main ]
|
||||
workflow_dispatch:
|
||||
|
||||
concurrency:
|
||||
group: bunny-deploy
|
||||
cancel-in-progress: true
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Install lftp
|
||||
run: sudo apt-get update && sudo apt-get install -y lftp
|
||||
|
||||
- name: Upload to Bunny Storage (SFTP)
|
||||
env:
|
||||
BUNNY_SFTP_HOST: storage.bunnycdn.com
|
||||
BUNNY_SFTP_USER: ${{ secrets.BUNNY_SFTP_USER }} # Storage Zone name
|
||||
BUNNY_SFTP_PASS: ${{ secrets.BUNNY_SFTP_PASS }} # Storage Zone FTP/SFTP password
|
||||
LOCAL_DIR: . # change to 'public' or 'dist' if needed
|
||||
REMOTE_DIR: / # Storage Zone root
|
||||
run: |
|
||||
lftp -u "$BUNNY_SFTP_USER","$BUNNY_SFTP_PASS" sftp://"$BUNNY_SFTP_HOST" <<EOF
|
||||
set cmd:fail-exit true
|
||||
set sftp:auto-confirm yes
|
||||
set net:max-retries 2
|
||||
set net:timeout 20
|
||||
set net:reconnect-interval-base 5
|
||||
lcd $LOCAL_DIR
|
||||
cd $REMOTE_DIR
|
||||
mirror --reverse --only-newer --continue --parallel=4 --verbose --delete \
|
||||
--exclude-glob ".git/**" \
|
||||
--exclude-glob ".github/**" \
|
||||
--exclude-glob ".DS_Store" \
|
||||
--exclude-glob ".gitignore" \
|
||||
.
|
||||
bye
|
||||
EOF
|
||||
|
||||
- name: Purge Bunny Pull Zone cache
|
||||
if: ${{ github.event_name == 'push' }}
|
||||
env:
|
||||
BUNNY_API_KEY: ${{ secrets.BUNNY_API_KEY }}
|
||||
BUNNY_PULLZONE_ID: ${{ secrets.BUNNY_PULLZONE_ID }}
|
||||
run: |
|
||||
curl -sS -X POST -H "AccessKey: $BUNNY_API_KEY" \
|
||||
https://api.bunny.net/pullzone/$BUNNY_PULLZONE_ID/purgeCache
|
||||
@@ -1,21 +0,0 @@
|
||||
name: Minify CSS
|
||||
|
||||
on:
|
||||
push
|
||||
|
||||
jobs:
|
||||
minify:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
- name: Auto Minify
|
||||
uses: nizarmah/auto-minify@master
|
||||
|
||||
# Auto commits minified files to the repository
|
||||
# Ignore it if you don't want to commit the files to the repository
|
||||
- name: Auto committing minified files
|
||||
uses: stefanzweifel/git-auto-commit-action@v3.0.0
|
||||
with:
|
||||
commit_message: "Github Action: Auto Minified JS and CSS files"
|
||||
branch: ${{ github.ref }}
|
||||
@@ -1,19 +0,0 @@
|
||||
name: NPM Publish
|
||||
|
||||
on:
|
||||
release:
|
||||
types: [created]
|
||||
workflow_dispatch:
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: '20.x'
|
||||
registry-url: 'https://registry.npmjs.org'
|
||||
- run: npm install -g npm
|
||||
- run: npm publish --access public
|
||||
env:
|
||||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
||||
Reference in New Issue
Block a user