Skip to content

Add CapitalTycoon.svg #53

Add CapitalTycoon.svg

Add CapitalTycoon.svg #53

Workflow file for this run

name: action-to-publish-app
on:
push:
branches:
- main
jobs:
deploy-the-website-online:
runs-on: ubuntu-latest
steps:
- run: |
echo "πŸŽ‰ The job was automatically triggered by a ${{ github.event_name }} event."
echo "🐧 This job is now running on a ${{ runner.os }} server hosted by GitHub!"
echo "πŸ’‘ The ${{ github.repository }} repository has been cloned to the runner."
echo "I am in ${{ github.workspace }}."
echo "πŸ”Ž The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}."
echo "Actual things now."
echo "Cloning repo:"
git clone https://Benur21:${{ secrets.GITHUB_TOKEN }}@github.com/Benur21/HTML-CSS.git
echo "-Entering the repo folder:"
cd HTML-CSS/
echo "-Current path:"
pwd
echo "-Current files:"
ls -l -a
echo "-Build the app:"
yarn && yarn run build
echo "-Current branch:"
git branch
echo "-Checkout branch:"
git checkout gh-pages
echo "-Current branch:"
git branch
echo "-Current files:"
ls -l -a
echo "-Removing old files:"
shopt -s extglob
rm -f -r !(dist)
ls -l -a
echo "-Moving new files:"
mv dist/* .
ls -l -a
echo "-Removing empty:"
rm -r dist
ls -l -a
echo "-Configurating git:"
git config user.name Benur21
git config user.email Benur21@users.noreply.github.com
echo "-Git status:"
git status
echo "-Git add .:"
git add .
echo "-Commit:"
git commit -m "deploy: ${{ github.sha }}" --allow-empty
echo "-Git status:"
git status
echo "-Git log:"
git log -3
echo "-Push:"
git push
echo "🍏 This job's status is ${{ job.status }}."