Commit 77be925f authored by Wohlgemuth, Jason's avatar Wohlgemuth, Jason
Browse files

ci: Restore CI config after identifying firewall issue

parent cbf3f5e9
Loading
Loading
Loading
Loading
Loading
+23 −23
Original line number Diff line number Diff line
@@ -6,20 +6,20 @@ default:
  tags:
    - cpu
  image: savannah.ornl.gov/research-enablement/bucket/runner
  # before_script:
  #   - curl -LO https://code.ornl.gov/api/v4/projects/16689/packages/generic/x86_64-unknown-linux-gnu/v${ACORN_VERSION}/acorn
  #   - chmod +x ./acorn
  #   - ./acorn --version
  #   - curl -L https://github.com/errata-ai/vale/releases/download/v${VALE_VERSION}/vale_${VALE_VERSION}_Linux_64-bit.tar.gz -o /root/vale.tar.gz
  #   - tar -xvzf /root/vale.tar.gz -C /usr/local/bin
  #   - vale -v
  #   - git config --global user.name "${USER}"
  #   - git config --global user.email "${EMAIL}"
  #   - git --version
  #   - git config --list
  #   - node --version
  #   - npm --version
  #   - npm install
  before_script:
    - curl -LO https://code.ornl.gov/api/v4/projects/16689/packages/generic/x86_64-unknown-linux-gnu/v${ACORN_VERSION}/acorn
    - chmod +x ./acorn
    - ./acorn --version
    - curl -L https://github.com/errata-ai/vale/releases/download/v${VALE_VERSION}/vale_${VALE_VERSION}_Linux_64-bit.tar.gz -o /root/vale.tar.gz
    - tar -xvzf /root/vale.tar.gz -C /usr/local/bin
    - vale -v
    - git config --global user.name "${USER}"
    - git config --global user.email "${EMAIL}"
    - git --version
    - git config --list
    - node --version
    - npm --version
    - npm install

variables:
  USER: CI
@@ -60,13 +60,13 @@ publish:
      - node_modules
  when: manual
  script:
    # - npm run download
    # - npm run build
    - npm run download
    - npm run build
    - git clone --verbose https://user:${ACCESS_TOKEN}@code-int.ornl.gov/sites/research.git site
    # - rm -rf ./site/html/_astro
    # - cp --force --recursive --verbose html site
    # - cd site
    # - git lfs track "*.pdf*" && mv .gitattributes html
    # - git add html
    # - git commit -m "Publish changes"
    # - git push
    - rm -rf ./site/html/_astro
    - cp --force --recursive --verbose html site
    - cd site
    - git lfs track "*.pdf*" && mv .gitattributes html
    - git add html
    - git commit -m "Publish changes"
    - git push