mirror of
https://github.com/softinio/softinio.com.git
synced 2025-09-03 10:36:42 -07:00
Move to github actions and update resume
This commit is contained in:
parent
bd4a400398
commit
a19ebf8364
4 changed files with 80 additions and 31 deletions
26
.github/workflows/build.yml
vendored
Normal file
26
.github/workflows/build.yml
vendored
Normal file
|
@ -0,0 +1,26 @@
|
|||
name: Build and Deploy
|
||||
|
||||
on: push
|
||||
|
||||
jobs:
|
||||
build:
|
||||
name: Build and Deploy
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
- name: Install Hugo
|
||||
run: |
|
||||
HUGO_DOWNLOAD=hugo_extended_${HUGO_VERSION}_Linux-64bit.tar.gz
|
||||
wget https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/${HUGO_DOWNLOAD}
|
||||
tar xvzf ${HUGO_DOWNLOAD} hugo
|
||||
mv hugo $HOME/hugo
|
||||
env:
|
||||
HUGO_VERSION: 0.72.0
|
||||
- name: Hugo Build
|
||||
run: $HOME/hugo -v
|
||||
- name: Deploy to S3
|
||||
if: github.ref == 'refs/heads/master'
|
||||
run: $HOME/hugo -v deploy --maxDeletes -1
|
||||
env:
|
||||
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
|
||||
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
|
Loading…
Add table
Add a link
Reference in a new issue