Skip to content

Commit

Permalink
wip: migration from Travis CI to GitHub Actions #149
Browse files Browse the repository at this point in the history
  • Loading branch information
tristan-greffe committed Dec 4, 2023
1 parent 7e05265 commit d0c2bb2
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 23 deletions.
8 changes: 0 additions & 8 deletions .github/workflows/doc.sh

This file was deleted.

37 changes: 22 additions & 15 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,13 @@ jobs:
- uses: actions/setup-node@v3
with:
node-version: ${{ secrets.NODE_VERSION }}
- run: |
export -f travis_fold
bash app.sh
env:
DOCKER_USER: ${{ secrets.DOCKER_PASSWORD }}
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USER }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build and push
uses: docker/build-push-action@v5
doc:
if: ${{ contains(github.event.head_commit.message, '[build doc]') }}
runs-on: ubuntu-latest
Expand All @@ -24,23 +25,29 @@ jobs:
- uses: actions/setup-node@v3
with:
node-version: ${{ secrets.NODE_VERSION }}
- run: bash doc.sh

- name: Build doc
run: rm .postcssrc.js && cd docs && yarn install && yarn build
- name: Deploy doc to GitHub Pages
uses: JamesIves/[email protected]
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages
FOLDER: docs/.vitepress/dist
# jobs:
# app:
# if: ${{ !contains(github.event.head_commit.message, '[skip app]') }}
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v4
# - name: Login to Docker Hub
# uses: docker/login-action@v3
# with:
# username: ${{ secrets.DOCKER_USER }}
# password: ${{ secrets.DOCKER_PASSWORD }}
# - name: Login to Docker Hub
# uses: docker/login-action@v3
# with:
# username: ${{ secrets.DOCKER_USER }}
# password: ${{ secrets.DOCKER_PASSWORD }}
# - name: Set up Docker Buildx
# uses: docker/setup-buildx-action@v3
# - name: Build and push
# uses: docker/build-push-action@v5
# - name: Build and push
# uses: docker/build-push-action@v5
# with:
# context: .
# file: ./Dockerfile
Expand Down

0 comments on commit d0c2bb2

Please sign in to comment.