diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
new file mode 100644
index 000000000..c1197ac21
--- /dev/null
+++ b/.github/workflows/ci.yml
@@ -0,0 +1,55 @@
+name: CI
+on:
+ push:
+ branches:
+ - main
+ pull_request:
+ branches:
+ - main
+ workflow_dispatch:
+
+jobs:
+ cancel:
+ runs-on: ubuntu-latest
+ steps:
+ - name: Cancel Previous Runs
+ uses: styfle/cancel-workflow-action@0.9.1
+ with:
+ access_token: ${{ github.token }}
+
+ build:
+ environment: PRODUCTION
+ needs: cancel
+ runs-on: ubuntu-latest
+ steps:
+ - name: Deploy
+ if: github.ref == 'refs/heads/main'
+ uses: appleboy/ssh-action@v0.1.8
+ with:
+ host: ${{ secrets.HOST }}
+ username: ${{ secrets.USERNAME }}
+ port: ${{ secrets.PORT }}
+ password: ${{ secrets.PASSWORD }}
+ script: |
+ echo "Stage 1: Go to git folder"
+ cd Reactive-Resume
+
+ echo "Stage 2: Checkout to branch main"
+ git checkout main
+
+ echo "Stage 3: Pull code from branch main"
+ git pull origin main
+
+ echo "Stage 4: Build app from Dockfile"
+ docker build -t app-resume .
+
+ echo "Stage 5: Stop and remove old container"
+ docker stop app-resume || true && docker rm app-resume || true
+
+ echo "Stage 6: Run app"
+ docker run -d --env-file ./.env -p 3000:3000 --network reactive-resume_default --restart unless-stopped --name app-resume app-resume
+
+ echo "Stage 7: Remove old images"
+ docker image prune -af
+
+ echo "Done!"
diff --git a/.github/workflows/lint-test-build.yml b/.github/workflows/lint-test-build.yml
deleted file mode 100644
index e8850f063..000000000
--- a/.github/workflows/lint-test-build.yml
+++ /dev/null
@@ -1,51 +0,0 @@
-name: Lint, Test & Build
-
-concurrency:
- group: "${{ github.workflow }}-${{ github.ref }}"
- cancel-in-progress: true
-
-on:
- workflow_dispatch:
- push:
- branches:
- - main
- pull_request:
- branches:
- - main
-
-jobs:
- main:
- runs-on: ubuntu-latest
-
- steps:
- - name: Checkout Repository
- uses: actions/checkout@v4.1.1
- with:
- fetch-depth: 2
-
- - name: Setup pnpm
- uses: pnpm/action-setup@v3.0.0
-
- - name: Setup Node.js
- uses: actions/setup-node@v4.0.2
- with:
- cache: "pnpm"
- node-version: 20.17.0
-
- - name: Install Dependencies
- run: pnpm install --frozen-lockfile
-
- - name: Lint
- run: pnpm lint
-
- - name: Format
- run: pnpm format:check
-
- - name: Test
- run: pnpm test
-
- - name: Build
- run: pnpm build
- env:
- NODE_ENV: production
- NX_CLOUD_ACCESS_TOKEN: ${{ secrets.NX_CLOUD_ACCESS_TOKEN }}
diff --git a/.github/workflows/publish-docker-image.yml b/.github/workflows/publish-docker-image.yml
deleted file mode 100644
index ed61c5ca8..000000000
--- a/.github/workflows/publish-docker-image.yml
+++ /dev/null
@@ -1,163 +0,0 @@
-name: Publish Docker Image
-
-on:
- workflow_dispatch:
- push:
- tags:
- - "*"
-
-concurrency:
- group: "${{ github.workflow }}-${{ github.ref }}"
- cancel-in-progress: true
-
-env:
- IMAGE: amruthpillai/reactive-resume
-
-jobs:
- build:
- runs-on: ubuntu-latest
-
- outputs:
- version: ${{ steps.version.outputs.version }}
-
- strategy:
- matrix:
- platform:
- - linux/amd64
- - linux/arm64
-
- steps:
- - name: Checkout Repository
- uses: actions/checkout@v4.1.4
-
- - name: Extract version from package.json
- id: version
- run: echo "version=$(jq -r '.version' package.json)" >> "$GITHUB_OUTPUT"
-
- - name: Set up QEMU
- uses: docker/setup-qemu-action@v3.0.0
-
- - name: Login to Docker Hub
- uses: docker/login-action@v3.1.0
- with:
- username: ${{ secrets.DOCKER_USERNAME }}
- password: ${{ secrets.DOCKER_TOKEN }}
-
- - name: Login to GitHub Container Registery
- uses: docker/login-action@v3.1.0
- with:
- registry: ghcr.io
- username: ${{ github.repository_owner }}
- password: ${{ github.token }}
-
- - name: Set up Docker Buildx
- uses: docker/setup-buildx-action@v3.3.0
-
- - name: Extract Docker Metadata
- id: meta
- uses: docker/metadata-action@v5.5.1
- with:
- tags: type=semver,pattern={{version}},prefix=v,value=${{ steps.version.outputs.version }}
- images: |
- ${{ env.IMAGE }}
- ghcr.io/${{ env.IMAGE }}
-
- - name: Prepare a unique name for Artifacts
- id: artifact_name
- run: |
- name=$(echo -n "${{ matrix.platform }}" | sed -e 's/[ \t:\/\\"<>|*?]/-/g' -e 's/--*/-/g')
- echo "name=$name" >> "$GITHUB_OUTPUT"
-
- - name: Build and Push by Digest
- uses: docker/build-push-action@v5.3.0
- id: build
- with:
- context: .
- platforms: ${{ matrix.platform }}
- labels: ${{ steps.meta.outputs.labels }}
- outputs: type=image,name=${{ env.IMAGE }},push-by-digest=true,name-canonical=true,push=true
- build-args: |
- NX_CLOUD_ACCESS_TOKEN=${{ secrets.NX_CLOUD_ACCESS_TOKEN }}
-
- - name: Export Digest
- run: |
- mkdir -p /tmp/digests
- digest="${{ steps.build.outputs.digest }}"
- touch "/tmp/digests/${digest#sha256:}"
-
- - name: Upload Digest
- uses: actions/upload-artifact@v4.3.3
- with:
- name: digests-${{ steps.artifact_name.outputs.name }}
- path: /tmp/digests/*
- if-no-files-found: error
- retention-days: 1
-
- merge:
- runs-on: ubuntu-latest
-
- needs:
- - build
-
- steps:
- - name: Checkout Repository
- uses: actions/checkout@v4.1.4
-
- - name: Download Digest
- uses: actions/download-artifact@v4.1.7
- with:
- path: /tmp/digests
- pattern: digests-*
- merge-multiple: true
-
- - name: Login to Docker Hub
- uses: docker/login-action@v3.1.0
- with:
- username: ${{ secrets.DOCKER_USERNAME }}
- password: ${{ secrets.DOCKER_TOKEN }}
-
- - name: Login to GitHub Container Registery
- uses: docker/login-action@v3.1.0
- with:
- registry: ghcr.io
- username: ${{ github.repository_owner }}
- password: ${{ github.token }}
-
- - name: Set up Docker Buildx
- uses: docker/setup-buildx-action@v3.3.0
-
- - name: Extract Docker Metadata
- id: meta
- uses: docker/metadata-action@v5.5.1
- with:
- tags: type=semver,pattern={{version}},prefix=v,value=${{ needs.build.outputs.version }}
- images: |
- ${{ env.IMAGE }}
- ghcr.io/${{ env.IMAGE }}
-
- - name: Create Docker Manifest List and Push
- working-directory: /tmp/digests
- run: |
- docker buildx imagetools create $(jq -cr '.tags | map("-t " + .) | join(" ")' <<< "$DOCKER_METADATA_OUTPUT_JSON") \
- $(printf '${{ env.IMAGE }}@sha256:%s ' *)
-
- - name: Inspect Image
- run: |
- docker buildx imagetools inspect ${{ env.IMAGE }}:${{ steps.meta.outputs.version }}
-
- - name: Update Repository Description
- uses: peter-evans/dockerhub-description@v4.0.0
- with:
- repository: ${{ github.repository }}
- username: ${{ secrets.DOCKER_USERNAME }}
- password: ${{ secrets.DOCKER_TOKEN }}
-
- - uses: sarisia/actions-status-discord@v1.14.3
- if: always()
- with:
- username: ReleaseBot
- webhook: ${{ secrets.DISCORD_WEBHOOK }}
- status: ${{ job.status }}
- title: "Release `${{ steps.meta.outputs.version }}`"
- description: "A new version of Reactive Resume just dropped! 🚀"
- url: "https://github.com/AmruthPillai/Reactive-Resume"
diff --git a/.github/workflows/sync-crowdin-translations.yml b/.github/workflows/sync-crowdin-translations.yml
deleted file mode 100644
index 48042f217..000000000
--- a/.github/workflows/sync-crowdin-translations.yml
+++ /dev/null
@@ -1,31 +0,0 @@
-name: Sync Crowdin Translations
-
-on:
- workflow_dispatch:
- schedule:
- - cron: 0 0 * * * # everyday at midnight (UTC)
-
-jobs:
- sync:
- if: github.repository == 'AmruthPillai/Reactive-Resume'
- runs-on: ubuntu-latest
-
- steps:
- - name: Checkout Repository
- uses: actions/checkout@v4.1.1
-
- - name: Sync Translations
- uses: crowdin/github-action@v1.15.2
- with:
- upload_sources: true
- upload_translations: true
- download_translations: true
- create_pull_request: true
- localization_branch_name: "l10n"
- pull_request_base_branch_name: "main"
- pull_request_title: "New Translations from Crowdin"
- pull_request_body: "You've got new translations to be merged into the app from contributors on Crowdin.\n\n_This pull request was automatically created by the [Crowdin Action](https://github.com/marketplace/actions/crowdin-action)._"
- env:
- GITHUB_TOKEN: ${{ github.token }}
- CROWDIN_PROJECT_ID: ${{ secrets.CROWDIN_PROJECT_ID }}
- CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }}
diff --git a/apps/artboard/index.html b/apps/artboard/index.html
index e4b13a8d9..179c3a60a 100644
--- a/apps/artboard/index.html
+++ b/apps/artboard/index.html
@@ -4,10 +4,10 @@