-
Notifications
You must be signed in to change notification settings - Fork 0
70 lines (61 loc) · 2.21 KB
/
timestamp.yml
File metadata and controls
70 lines (61 loc) · 2.21 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
# name: Build and Deploy
# on:
# push:
# branches:
# - main
# jobs:
# build-and-deploy:
# runs-on: ubuntu-latest
# steps:
# - name: checkout
# uses: actions/checkout@v4
# # Note: This is *only* for the very next step, it is not required by
# # git-restore-mtime-action.
# - name: setup node
# uses: actions/setup-node@v4
# with:
# node-version: "latest"
# # Run the build script which populates the ./dist folder
# - name: build
# run: |
# yarn
# yarn add -D vite
# yarn run build
# # Merge ./dist into the 'gh-pages' branch (dist in this case)
# - name: update dist branch
# uses: peaceiris/actions-gh-pages@v2.3.1
# env:
# PERSONAL_TOKEN: ${{ secrets.ACCESS_TOKEN_REPO }}
# PUBLISH_BRANCH: dist
# PUBLISH_DIR: ./my-vue-app/dist
# # Check out the new branch
# - name: checkout dist
# uses: actions/checkout@v4
# with:
# ref: dist
# # git-restore-mtime-bare uses the ref log to find the correct timestamp
# # for each file. This requires a full git history. The default value (1)
# # creates a shallow checkout.
# fetch-depth: 0
# # Fix timestamps
# - name: restore timestamps
# uses: chetan/git-restore-mtime-action@v2
# #step-security/git-restore-mtime-action@v2
# # chetan/git-restore-mtime-action@v2
# - name: Set up Python
# uses: actions/setup-python@v4
# with:
# python-version: "3.10"
# - name: Install AWS CLI
# run: |
# sudo apt-get update
# sudo apt-get install -y python3-pip
# pip3 install awscli --upgrade
# - name: Sync files to S3
# env:
# AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
# AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
# AWS_SESSION_TOKEN: ${{ secrets.AWS_SESSION_TOKEN }}
# AWS_REGION: ${{ secrets.AWS_REGION }} # Use your S3 region here
# run: |
# aws s3 sync . s3://dp-codebase-dev/Python-CiCd-Test3 --exclude '.git*/*' --delete --follow-symlinks