Skip to content

Commit

Permalink
Change base path to "/" to reflect new domain
Browse files Browse the repository at this point in the history
We are now serving from the root path of
top-attack-techniques.mitre-engenuity.org, which requires serving from
the root path "/" instead of "/top-attack-techniques/".
  • Loading branch information
mehaase committed Jul 17, 2024
1 parent 9a38c57 commit eaa76ca
Showing 1 changed file with 1 addition and 55 deletions.
56 changes: 1 addition & 55 deletions .github/workflows/website-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,67 +45,13 @@ jobs:
- name: Type Check
run: npm run type-check
- name: Build
run: npm run build-only -- --base /top-attack-techniques/
run: npm run build-only -- --base /
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: tat_website
path: ./dist/

# Publish to Azure blob only on PRs, not main.
# azure_blob:
# if: github.ref_name != 'main'
# needs: tat_website_build
# runs-on: ubuntu-latest
# env:
# AZURE_STORAGE_ACCOUNT: topattacktechniques
# AZURE_STORAGE_SAS_TOKEN: ${{ secrets.AZURE_SAS_TOKEN }}
# BRANCH_NAME: ${{ github.head_ref || github.ref_name }}
# STATICRYPT_PASS: ${{ secrets.STATICRYPT_PASS }}
# steps:
# - uses: actions/setup-node@v3
# with:
# node-version: "19"
# - run: npm install -g staticrypt
# - name: Download Web Site
# uses: actions/download-artifact@v3
# with:
# name: tat_website
# path: tat_website
# - env:
# STATICRYPT_PASS: ${{ secrets.STATICRYPT_PASS }}
# run: >
# staticrypt --remember 3 --salt b1c18fbb5081eca3e2db08a413b01774 \
# --password $STATICRYPT_PASS --short \
# --template-title "Top ATT&CK Techniques (branch: $BRANCH_NAME)" \
# --template-instructions "The contents of this site are marked TLP:AMBER:CTID-R&D:22-80. Do not share with unauthorized individuals." \
# --template-color-primary "#6241c5" \
# --template-color-secondary "#b2b2b2" \
# --template-button "Log In" \
# -r tat_website/
# - name: Ensure StatiCrypt ran # StatiCrypt will fail without warning; verify it created a directory
# run: test -d encrypted
# - name: Copy encrypted HTML files
# run: rsync -Ir -v --include='*.html' --exclude='*.*' encrypted/tat_website .
# - name: Set the branch name
# run: mv tat_website "$BRANCH_NAME"
# - name: Install Azure CLI
# run: curl -sL https://aka.ms/InstallAzureCLIDeb | sudo bash
# - name: Delete old blobs
# run: az storage blob delete-batch -s '$web' --pattern "$BRANCH_NAME/*"
# - name: Upload to blob storage
# run: az storage blob upload-batch -s . --pattern "$BRANCH_NAME/*" -d '$web'
# - uses: actions/github-script@v6
# if: github.event_name == 'pull_request'
# with:
# script: |
# github.rest.issues.createComment({
# issue_number: context.issue.number,
# owner: context.repo.owner,
# repo: context.repo.repo,
# body: `This PR has been published to https://topattacktechniques.z13.web.core.windows.net/${process.env['BRANCH_NAME']}/`,
# })

github_pages:
# This job only runs when committing or merging to main branch.
if: github.ref_name == 'main'
Expand Down

0 comments on commit eaa76ca

Please sign in to comment.