feat: installing stack by hand #6
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: CI & CD | |
on: [push, pull_request] | |
env: | |
MIRROR_URL: "[email protected]:EpitechPromo2026/B-FUN-500-TLS-5-2-glados-aurelien.masset.git" | |
jobs: | |
check_can_build: | |
name: Check build status using stack | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Install stack | |
run: curl -sSL https://get.haskellstack.org/ | sh | |
- name: Build project | |
shell: bash | |
run: | | |
stack build | |
exit $? | |
mirroring_to_github: | |
name: Mirror to Epitech's github repository | |
needs: check_can_build | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Push commit/pull request | |
uses: pixta-dev/repository-mirroring-action@v1 | |
with: | |
target_repo_url: | |
${{ env.MIRROR_URL }} | |
ssh_private_key: | |
${{ secrets.SSH_PRIVATE_KEY }} |