Skip to content

Commit

Permalink
[Refactor] : ci.yml 과 deploy.yml 통합
Browse files Browse the repository at this point in the history
  • Loading branch information
sookim-1 committed Jul 9, 2024
1 parent a4f1855 commit 31e2178
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 56 deletions.
Original file line number Diff line number Diff line change
@@ -1,38 +1,32 @@
name: Deploy
name: Build and Deploy

on:
push:
branches: [ main ]

on:
workflow_run:
workflows: ["ci"]
types:
- completed

permissions:
contents: read

jobs:
build:
build-and-deploy:
runs-on: ubuntu-20.04
container:
image: swift:5.6-focal
steps:
- uses: actions/checkout@v3
- name: Install Dependencies
run: |
apt-get update
apt-get install -y make
fallocate -l 2G /swapfile
chmod 600 /swapfile
mkswap /swapfile
swapon /swapfile
- name: Build
run: |
swift --version
swift package --version
swift build -v
deploy-github-pages:
runs-on: ubuntu-20.04
container:
image: swift:5.6-focal
options: --memory 2g
needs: build
steps:
- uses: actions/checkout@v3
- name: Install Dependencies
run: |
apt-get update
apt-get install -y make
- name: Setup
run: make setup
- name: Generate the website
Expand Down
36 changes: 0 additions & 36 deletions .github/workflows/ci.yml

This file was deleted.

0 comments on commit 31e2178

Please sign in to comment.