gh-action: updated compiled files and bumped version to 1.0.20 #128
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Prepare Files | |
on: | |
push: | |
branches: | |
- '**' | |
- '!master' | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
cancel-in-progress: true | |
jobs: | |
prepare-files: | |
name: Update compiled files | |
runs-on: ubuntu-latest | |
steps: | |
- name: Set up SSH | |
run: | | |
mkdir -p ~/.ssh | |
echo "${{ secrets.SSH_PRIVATE_KEY }}" > ~/.ssh/id_ed25519 | |
chmod 600 ~/.ssh/id_ed25519 | |
ssh-keyscan github.com >> ~/.ssh/known_hosts | |
- uses: actions/checkout@v4 | |
- name: Switch to SSH | |
run: git remote set-url origin [email protected]:landamessenger/git-board-flow.git | |
- name: Set up Node.js 20 | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '20.x' | |
- name: Install Dependencies | |
run: npm install | |
- name: Build Project | |
run: npm run build | |
- name: Commit updated dist directory | |
uses: EndBug/add-and-commit@v9 | |
with: | |
add: './dist/' | |
committer_name: GitHub Actions | |
committer_email: [email protected] | |
default_author: user_info | |
message: 'gh-action: updated compiled files' |