From 8fa8d64155933d0de4fff187cd7a8a02ce014872 Mon Sep 17 00:00:00 2001 From: Baptiste Grenier Date: Thu, 5 Nov 2020 17:41:33 +0100 Subject: [PATCH] Fine tune GitHub actions (#132) * travis: drop travis * deploy: deploy to master branch * clean names --- .github/workflows/check-links.yml | 1 + .github/workflows/deploy.yml | 5 ++--- .github/workflows/lint.yml | 4 ++-- .travis.yml | 36 ------------------------------- 4 files changed, 5 insertions(+), 41 deletions(-) delete mode 100644 .travis.yml diff --git a/.github/workflows/check-links.yml b/.github/workflows/check-links.yml index c1e905b48c..f15cd4d19a 100644 --- a/.github/workflows/check-links.yml +++ b/.github/workflows/check-links.yml @@ -4,6 +4,7 @@ on: [push, pull_request] jobs: markdown-link-check: + name: Check links using markdwon-link-check runs-on: ubuntu-latest steps: - name: Checkout code diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 6a4be42587..82ac92c012 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -12,7 +12,7 @@ on: jobs: deploy: - name: Build and Deploy Hugo + name: Build using Hugo and deploy runs-on: ubuntu-18.04 steps: - uses: actions/checkout@v2 @@ -55,5 +55,4 @@ jobs: personal_token: ${{ secrets.PERSONAL_TOKEN }} external_repository: EGI-Foundation/EGI-Foundation.github.io cname: docs.egi.eu - # XXX Publish to a test branch - publish_branch: test + publish_branch: master diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 9bd18b5f5d..376a0e89c3 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -1,11 +1,11 @@ --- -name: Super-Linter +name: Lint on: [push, pull_request] jobs: super-lint: - name: Linting + name: Lint with Supper-Linter runs-on: ubuntu-latest steps: diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 2f65a1dcd0..0000000000 --- a/.travis.yml +++ /dev/null @@ -1,36 +0,0 @@ ---- -os: linux -dist: xenial -language: node_js -# NodeJS 12 is maintained until 2022-04-30 -# https://nodejs.org/en/about/releases/ -node_js: - - 12 -git: - submodules: true -before_install: - - npm ci -script: - # building static content with hugo - - ./binaries/linux64/hugo -deploy: - # https://docs.travis-ci.com/user/deployment/pages/ - provider: pages - # Keep generated files before uploading, required - skip_cleanup: true - # Be verbose for debugging - vebose: true - # Set in the settings page of the repository, as a secure variable - github_token: $GITHUB_TOKEN - # Commit with identity of GITHUB_TOKEN - commiter_from_gh: true - # Source directory - local_dir: public - # Target repository - repo: EGI-Foundation/EGI-Foundation.github.io - # Target branch - target_branch: master - # Custom FQDN for GitHub pages - fqdn: docs.egi.eu - on: - branch: master