Skip to content

Update ellekit

Update ellekit #125

Workflow file for this run

name: Update repo
on:
push:
branches:
- main
workflow_dispatch:
jobs:
build:
if: "!contains(github.event.head_commit.message, 'skip-ci')"
runs-on: ubuntu-latest
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Install build requirements
run: sudo apt-get -y install lz4
- name: Get commit SHA
id: vars
shell: bash
run: |
echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})"
echo "::set-output name=sha_short::$(git rev-parse HEAD)"
- name: Import GPG Keys
uses: crazy-max/ghaction-import-gpg@v4
with:
gpg_private_key: ${{ secrets.PALERA1N_GPG_PRIVATE_KEY }}
passphrase: ${{ secrets.PALERA1N_GPG_PASSPHRASE }}
- name: Build repo
run: |
bash build.sh
- name: Upload files
uses: wangyucode/[email protected]
with:
host: ${{ secrets.REPO_FTP_HOST }}
port: ${{ secrets.REPO_FTP_PORT }}
username: repo
password: ${{ secrets.REPO_FTP_PASS }}
forceUpload: true
dryRun: false
localDir: 'publish/'
remoteDir: '/files'