22
22
matrix-config : ${{ matrix.environment.config }}
23
23
secrets :
24
24
aws-access-key-id : ${{ secrets.AWS_ACCESS_KEY_ID }}
25
- aws-secret-access-key : ${{ secrets.AWS_SECRET_ACCESS_KEY }}
26
- # environment:
27
- # name: development
28
- # url: https://dev-design.va.gov/${{ github.event.number }}
29
- # steps:
30
- # - uses: actions/checkout@v2
31
- # with:
32
- # fetch-depth: 0
33
- # - name: Use Node.js 16.x
34
- # uses: actions/setup-node@v2
35
- # with:
36
- # node-version: 16.x
37
- # cache: 'yarn'
38
- # - uses: ruby/setup-ruby@v1
39
- # with:
40
- # ruby-version: 2.7.5 # Not needed with a .ruby-version file
41
- # bundler-cache: true # runs 'bundle install' and caches installed gems automatically
42
- # - run: yarn install
43
- # - run: yarn run build
44
- # - run: bundle exec jekyll build --config _config.yml,jekyll-configs/${{ matrix.environment.config }} --baseurl /${{ github.event.number }}
45
- # - name: Make BUILD.txt file
46
- # # The -e flag enables the interpretation of the \n newline character
47
- # run: |
48
- # echo -e "REF=${{ github.sha }}\n\
49
- # BUILD_ID=${{ github.run_id }}\n\
50
- # BUILDTIME=$(date)" > _site/BUILD.txt
51
- # # We are taking these extra steps due to some differences between Jekyll and AWS S3.
52
- # # To access a .html file served from S3, the URL needs to have the .html extension.
53
- # # We're removing the extension to make the URLs prettier.
54
- # # More context:
55
- # # https://simpleit.rocks/ruby/jekyll/tutorials/having-pretty-urls-in-a-jekyll-website-hosted-in-amazon-s3/
56
- # - name: Remove .html extension on non-index files
57
- # run: |
58
- # find _site/ -type f ! -iname 'index.html' -iname '*.html' \
59
- # -print0 | while read -d $'\0' f; do mv "$f" "${f%.html}"; done
60
-
61
- # - uses: aws-actions/configure-aws-credentials@v4
62
- # with:
63
- # aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
64
- # aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
65
- # aws-region: "us-gov-west-1"
66
- # - name: Sync extensionless html files with correct type
67
- # run: |
68
- # aws s3 sync _site s3://${{ matrix.environment.url }} \
69
- # --acl public-read \
70
- # --delete \
71
- # --exclude "storybook/*" \
72
- # --exclude "*.*" \
73
- # --content-type "text/html"
74
- # - name: Sync remaining files
75
- # run: |
76
- # aws s3 sync _site s3://${{ matrix.environment.url }} \
77
- # --acl public-read \
78
- # --delete \
79
- # --exclude "*" \
80
- # --include "*.*" \
81
- # --exclude "storybook/*"
25
+ aws-secret-access-key : ${{ secrets.AWS_SECRET_ACCESS_KEY }}
0 commit comments