Habilitar la clase de modelos y el anexo sobre ruby #29
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: Deploy | |
on: | |
push: | |
branches: [ "master" ] | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
env: | |
DEPLOY_REMOTE_URI: github.com/I110IS/i110is.github.io.git | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: npm | |
run: npm install | |
- name: Build | |
run: ./build | |
- name: Configure git | |
run: | | |
git config --global user.name "Deploy Bot" | |
git config --global user.email "<>" | |
git config user.name "Deploy Bot" | |
git config user.email "<>" | |
- name: Timestamp | |
id: timestamp | |
run: echo "::set-output name=value::$(date +'%Y-%m-%dT%H:%M:%S')" | |
- name: Commit & push | |
run: | | |
cd .. | |
git clone https://${{ secrets.DEPLOY_USERNAME }}:${{ secrets.DEPLOY_ACCESS_TOKEN }}@${{ env.DEPLOY_REMOTE_URI }} target | |
rm -rf target/docs/ | |
mv labs/dist/ target/docs/ | |
cd target | |
git add docs | |
git commit -m "${{ format('[Deploy] {0}', steps.timestamp.outputs.value) }}" | |
git push https://${{ secrets.DEPLOY_USERNAME }}:${{ secrets.DEPLOY_ACCESS_TOKEN }}@${{ env.DEPLOY_REMOTE_URI }} -f |