File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -21,13 +21,29 @@ jobs:
21
21
run : |
22
22
echo "RUBY_VERSION=${{ github.event.client_payload.version || github.event.inputs.version }}" >> $GITHUB_ENV
23
23
24
+ - name : Store ABI version
25
+ run : echo "ABI_VERSION=$(echo ${{ env.RUBY_VERSION }} | cut -d '.' -f 1-2)" >> $GITHUB_ENV
26
+
24
27
- name : Copy draft package `/tmp` to `/pub` directory
25
28
run : tool/release.sh ${{ env.RUBY_VERSION }}
26
29
env :
27
30
AWS_ACCESS_KEY_ID : ${{ secrets.FTP_R_L_O_AWS_ACCESS_KEY_ID }}
28
31
AWS_SECRET_ACCESS_KEY : ${{ secrets.FTP_R_L_O_AWS_SECRET_ACCESS_KEY }}
29
32
AWS_DEFAULT_REGION : us-west-2
30
33
34
+
35
+ - name : Purge URLs of release package
36
+ run : |
37
+ curl -X POST \
38
+ -H "Fastly-Key: ${{ secrets.FASTLY_PURGE_TOKEN }}" \
39
+ https://api.fastly.com/purge/cache.ruby-lang.org/pub/ruby/${{ env.ABI_VERSION }}/ruby-${{ env.RUBY_VERSION }}.tar.gz
40
+ curl -X POST \
41
+ -H "Fastly-Key: ${{ secrets.FASTLY_PURGE_TOKEN }}" \
42
+ https://api.fastly.com/purge/cache.ruby-lang.org/pub/ruby/${{ env.ABI_VERSION }}/ruby-${{ env.RUBY_VERSION }}.tar.xz
43
+ curl -X POST \
44
+ -H "Fastly-Key: ${{ secrets.FASTLY_PURGE_TOKEN }}" \
45
+ https://api.fastly.com/purge/cache.ruby-lang.org/pub/ruby/${{ env.ABI_VERSION }}/ruby-${{ env.RUBY_VERSION }}.zip
46
+
31
47
# TODO
32
48
# - name: Create a release on GitHub
33
49
You can’t perform that action at this time.
0 commit comments