Skip to content

Commit

Permalink
Mise en place github action
Browse files Browse the repository at this point in the history
  • Loading branch information
fauguste committed Nov 3, 2019
1 parent e3f7f90 commit 203ce46
Show file tree
Hide file tree
Showing 5 changed files with 47 additions and 38 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Deploy Wiki Adire Site

on:
release:
# Only use the types keyword to narrow down the activity types that will trigger your workflow.
types: [published]

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v1
- uses: actions/setup-ruby@v1
with:
ruby-version: '2.x'
- name: Build
run: |
docker run \
-v ${{ github.workspace }}:/srv/jekyll -v ${{ github.workspace }}/_site:/srv/jekyll/_site \
jekyll/builder:latest /bin/bash -c "chmod 777 /srv/jekyll && jekyll build --future"
- name: Deploy
run: bash deploy
env:
S3_ACCESS_KEY_ID: ${{ secrets.S3_ACCESS_KEY_ID }}
S3_SECRET_KEY: ${{ secrets.S3_SECRET_KEY }}
16 changes: 16 additions & 0 deletions .github/workflows/jekyll.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Wiki Adire Site

on: [push]

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v1
- name: Build the site in the jekyll/builder container
run: |
docker run \
-v ${{ github.workspace }}:/srv/jekyll -v ${{ github.workspace }}/_site:/srv/jekyll/_site \
jekyll/builder:latest /bin/bash -c "chmod 777 /srv/jekyll && jekyll build --future"
35 changes: 0 additions & 35 deletions .travis.yml

This file was deleted.

5 changes: 3 additions & 2 deletions Readme.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Site wiki.adire.eu.com

[![Build Status](https://travis-ci.org/fauguste/wiki.adire.eu.com.svg?branch=master)](https://travis-ci.org/fauguste/wiki.adire.eu.com)
[![Build Status](https://github.com/fauguste/wiki.adire.eu.com/workflows/Wiki Adire Site/badge.svg)

[![FOSSA Status](https://app.fossa.io/api/projects/git%2Bgithub.com%2Ffauguste%2Fwiki.adire.eu.com.svg?type=shield)](https://app.fossa.io/projects/git%2Bgithub.com%2Ffauguste%2Fwiki.adire.eu.com?ref=badge_shield)

## Prérequis
Expand All @@ -14,4 +15,4 @@ bundle exec jekyll serve


## License
[![FOSSA Status](https://app.fossa.io/api/projects/git%2Bgithub.com%2Ffauguste%2Fwiki.adire.eu.com.svg?type=large)](https://app.fossa.io/projects/git%2Bgithub.com%2Ffauguste%2Fwiki.adire.eu.com?ref=badge_large)
[![FOSSA Status](https://app.fossa.io/api/projects/git%2Bgithub.com%2Ffauguste%2Fwiki.adire.eu.com.svg?type=large)](https://app.fossa.io/projects/git%2Bgithub.com%2Ffauguste%2Fwiki.adire.eu.com?ref=badge_large)
2 changes: 1 addition & 1 deletion pages/git/branch.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@ menus: git

git branch -D BRANCH_NAME

## Suppression des toutes les branches locales n'existant plus sur le serveur
## Suppression des toutes les branches locales

git branch | grep -v "master" | xargs git branch -D

0 comments on commit 203ce46

Please sign in to comment.