@@ -31,20 +31,16 @@ jobs:
31
31
conda install -c conda-forge pip
32
32
conda install -c conda-forge gsl
33
33
34
- - name : Build package
34
+ - name : Build wheels
35
35
run : |
36
36
python setup.py sdist bdist_wheel
37
37
38
- - name : run tests
38
+ - name : Run tests
39
39
run : |
40
40
conda install -c conda-forge numpy
41
41
python setup.py install
42
42
python conda-recipe/run_test.py
43
43
44
- # - name: show content
45
- # run: |
46
- # ls -l ${{ github.workspace }}/dist
47
-
48
44
# - uses: actions/upload-artifact@v2
49
45
# with:
50
46
# name: diffpy2-${{ matrix.os }}-${{ matrix.python-version }}
@@ -62,35 +58,34 @@ jobs:
62
58
tag : 1.4.0
63
59
body : This is an alpha build of the pdffit2 library (1.4.0)
64
60
65
- # upload:
66
- # steps:
67
- # - name: Checkout target repo
68
- # uses: actions/checkout@v3
69
- # env:
70
- # REPO: easyScience/pypi
71
- # REPO_PATH: pypi
72
- # with:
73
- # fetch-depth: 0
74
- # token: ${{ secrets.ES_TOKEN }}
75
- # repository: ${{ env.REPO }}
76
- # path: ${{ env.REPO_PATH }}
77
-
78
- # - name: Copy index to new repo
79
- # env:
80
- # SOURCE: index.html
81
- # TARGET: pypi/easysciencecore/
82
- # run: cp ${{ env.SOURCE }} ${{ env.TARGET }}
83
- # - name: Push
84
- # env:
85
- # REPO_PATH: pypi
86
- # GIT_USERNAME: action
87
-
88
- # run: |
89
- # cd ${{ env.REPO_PATH }}
90
- # git config --local user.name "${{ env.GIT_USERNAME }}"
91
- # git config --local user.email "${{ env.GIT_EMAIL }}"
92
- # git add .
93
- # if [[ `git status --porcelain` ]]; then
94
- # git commit -m "Github Actions Automatically Built in `date +"%Y-%m-%d %H:%M"`"
95
- # git push
61
+ - name : Checkout target repo
62
+ uses : actions/checkout@v3
63
+ env :
64
+ REPO : easyScience/pypi
65
+ REPO_PATH : pypi
66
+ with :
67
+ fetch-depth : 0
68
+ token : ${{ secrets.ES_TOKEN }}
69
+ repository : ${{ env.REPO }}
70
+ path : ${{ env.REPO_PATH }}
71
+ ref : " pdffit" # temporarily, switch branch from master
72
+ - name : Copy index to new repo
73
+ env :
74
+ SOURCE : index.html
75
+ TARGET : pypi/pdffit2/
76
+ run : cp ${{ env.SOURCE }} ${{ env.TARGET }}
77
+ - name : Push
78
+ env :
79
+ REPO_PATH : pypi
80
+ GIT_USERNAME : action
81
+
82
+ run : |
83
+ cd ${{ env.REPO_PATH }}
84
+ git config --local user.name "${{ env.GIT_USERNAME }}"
85
+ git config --local user.email "${{ env.GIT_EMAIL }}"
86
+ git add .
87
+ if [[ `git status --porcelain` ]]; then
88
+ git commit -m "Github Actions Automatically Built in `date +"%Y-%m-%d %H:%M"`"
89
+ git push
90
+ fi
96
91
# fi
0 commit comments